From cede8559a64c93ad2e300039c779bbf52c3eb1f0 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 9 Jun 2022 14:06:02 +0200 Subject: [PATCH] modbuild: abort build on error errors in the build-steps have been ignored --- Pmodules/libpbuild.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index 51c5ce2..c43b0c1 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -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}" }