Change 'exit' to 'return' in setup-env.sh (#36137)
* Change 'exit' to 'return' in `setup-env.sh` to avoid losing shell in some cases when sourcing twice.
This commit is contained in:
parent
b5079614b0
commit
7a358c9005
@ -41,7 +41,7 @@
|
||||
|
||||
# prevent infinite recursion when spack shells out (e.g., on cray for modules)
|
||||
if [ -n "${_sp_initializing:-}" ]; then
|
||||
exit 0
|
||||
return 0
|
||||
fi
|
||||
export _sp_initializing=true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user