modbuild: abort build on error

errors in the build-steps have been ignored
This commit is contained in:
2022-06-09 14:06:02 +02:00
parent 3c434c48f7
commit cede8559a6
+4 -1
View File
@@ -1063,7 +1063,10 @@ pbuild::make_all() {
# might/need to be set.
#
cd "${dir}"
typeset -F "$t" 2>/dev/null && "$t" || :
if typeset -F "$t" 2>/dev/null; then
"$t" || \
std::die 10 "Aborting..."
fi
done
touch "${BUILD_DIR}/.${target}"
}