diff options
-rwxr-xr-x | share/spack/setup-env.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh index 5c1558f7fc..232d824170 100755 --- a/share/spack/setup-env.sh +++ b/share/spack/setup-env.sh @@ -92,6 +92,8 @@ function spack { LOC="$(spack location $_sp_arg "$@")" if [[ -d "$LOC" ]] ; then cd "$LOC" + else + return 1 fi fi return |