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
|
fi
|
||||||
|
|
||||||
# Executing hook
|
# Executing hook
|
||||||
./"${HOOK}"
|
./"${HOOK}" || ( Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 )
|
||||||
done
|
done
|
||||||
|
|
||||||
# Creating stage file
|
# Creating stage file
|
||||||
|
|
|
@ -54,7 +54,7 @@ do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Executing hook
|
# 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
|
# Removing hook
|
||||||
rm -f chroot/root/"${HOOK}"
|
rm -f chroot/root/"${HOOK}"
|
||||||
|
|
|
@ -52,7 +52,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Executing hook
|
# 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
|
# Removing hook
|
||||||
rm -f chroot/root/"$(basename ${HOOK})"
|
rm -f chroot/root/"$(basename ${HOOK})"
|
||||||
|
|
Loading…
Reference in New Issue