diff --git a/nvm.sh b/nvm.sh index e4ce9f8..719bf55 100755 --- a/nvm.sh +++ b/nvm.sh @@ -389,7 +389,7 @@ nvm() { if [ -z $VERSION ]; then VERSION=`nvm_version $2` fi - if [ ! -d $NVM_DIR/$VERSION ]; then + if [ ! -d "$NVM_DIR/$VERSION" ]; then echo "$VERSION version is not installed yet" return 1 fi