Skip to content

Commit

Permalink
send correct exit code [deception-rebuild]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaelynlitz authored Oct 31, 2023
1 parent a5941ba commit eee0695
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildsystem/configure-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ 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
# accessible to group members
# 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

0 comments on commit eee0695

Please sign in to comment.