From 67df5ba324adf0112b3543b273b0b41532864cac Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 13 Jun 2022 10:06:28 +0200 Subject: [PATCH] modbuild: don't exit on error there are some issues if exit on error (set -o errexit) is set: A statement like var=$(cmd) causes the program to terminate, if 'cmd' exit with an exit code > 0. Using var=$(cmd || :) cannot be used in all cases because $? will be 0 even if 'cmd' exits with an error. --- Pmodules/libpbuild.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index c43b0c1..ad62e80 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -656,7 +656,7 @@ pbuild::post_install() { pbuild::make_all() { source "${BUILD_SCRIPT}" - set -e + #set -o errexit local -r logfile="${BUILDBLOCK_DIR}/pbuild.log" # module name including path in hierarchy and version # (ex: 'gcc/6.1.0/openmpi/1.10.2' for openmpi compiled with gcc 6.1.0)