Adding a message about which hook made a build fail, if any.
This commit is contained in:
parent
e9c580b6ae
commit
74a7af6571
|
@ -49,7 +49,7 @@ then
|
|||
fi
|
||||
|
||||
# Executing hook
|
||||
./"${HOOK}"
|
||||
./"${HOOK}" || ( Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 )
|
||||
done
|
||||
|
||||
# Creating stage file
|
||||
|
|
|
@ -54,7 +54,7 @@ do
|
|||
fi
|
||||
|
||||
# Executing hook
|
||||
Chroot chroot "./root/${HOOK}"
|
||||
Chroot chroot "./root/${HOOK}" || ( Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 )
|
||||
|
||||
# Removing hook
|
||||
rm -f chroot/root/"${HOOK}"
|
||||
|
|
|
@ -52,7 +52,7 @@ then
|
|||
fi
|
||||
|
||||
# Executing hook
|
||||
Chroot chroot "/root/$(basename ${HOOK})"
|
||||
Chroot chroot "/root/$(basename ${HOOK})" || ( Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 )
|
||||
|
||||
# Removing hook
|
||||
rm -f chroot/root/"$(basename ${HOOK})"
|
||||
|
|
Loading…
Reference in New Issue