Fixed bash error caused by lack of double quotes
parent
d3f04c793e
commit
b4a9c14d4e
2
nvm.sh
2
nvm.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue