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:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user