mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-03 20:30:51 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user