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.
This commit is contained in:
2022-06-13 10:06:28 +02:00
parent 9991dda16c
commit 67df5ba324
+1 -1
View File
@@ -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)