Skip to content
Snippets Groups Projects
Commit 584501a1 authored by Tom Scogland's avatar Tom Scogland
Browse files

switched test to use -d for location check

parent 3c10e3b5
No related branches found
No related tags found
No related merge requests found
...@@ -84,10 +84,10 @@ function spack { ...@@ -84,10 +84,10 @@ function spack {
if [ "$_sp_arg" = "-h" ]; then if [ "$_sp_arg" = "-h" ]; then
command spack cd -h command spack cd -h
else else
LOC="$(spack location $_sp_arg "$@")" LOC="$(spack location $_sp_arg "$@")"
if [[ "x" -ne "x$LOC" ]] ; then if [[ -d "$LOC" ]] ; then
cd "$LOC" cd "$LOC"
fi fi
fi fi
return return
;; ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment