From eee06952f1c7aa7603f86b584ca18b67a2d95ab2 Mon Sep 17 00:00:00 2001 From: Jaelyn Litzinger <93339979+jaelynlitz@users.noreply.github.com> Date: Tue, 31 Oct 2023 09:40:10 -0700 Subject: [PATCH] send correct exit code [deception-rebuild] --- buildsystem/configure-modules.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buildsystem/configure-modules.sh b/buildsystem/configure-modules.sh index 5739f4c71..d9ad1d94c 100755 --- a/buildsystem/configure-modules.sh +++ b/buildsystem/configure-modules.sh @@ -27,6 +27,8 @@ echo Arch for module path being used is $arch && \ echo module use -a $SPACK_INSTALL/modules/$arch &> $base/modules/dependencies.sh && \ spack module tcl loads -r -x resolve resolve &>> $base/modules/dependencies.sh +exit_code=$? + # This makes the module and installation location globally readable which isn't ideal. # Sticking to this avoids permission issues for other group members, but you # should make sure that the install location is in a folder that is only @@ -34,3 +36,7 @@ spack module tcl loads -r -x resolve resolve &>> $base/modules/dependencies.sh # Since we use this in CI and other users will create files we cannot chmod, # We need to allow this command to fail chmod -R ugo+wrx $SPACK_INSTALL/modules > /dev/null 2>&1 + +# Should still change permissions before exiting, but should also return the exit +# code of spack related code +exit $exit_code