Fixed bash error caused by lack of double quotes

master
Matthew Alexander 2013-10-24 18:59:37 -07:00
parent d3f04c793e
commit b4a9c14d4e
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -389,7 +389,7 @@ nvm() {
if [ -z $VERSION ]; then if [ -z $VERSION ]; then
VERSION=`nvm_version $2` VERSION=`nvm_version $2`
fi fi
if [ ! -d $NVM_DIR/$VERSION ]; then if [ ! -d "$NVM_DIR/$VERSION" ]; then
echo "$VERSION version is not installed yet" echo "$VERSION version is not installed yet"
return 1 return 1
fi fi