Quotes are not required for eval

This commit is contained in:
Nicolas Rakoto
2013-05-01 14:16:10 +03:00
parent eb140e7c0b
commit de16f04e9c

2
nvm.sh
View File

@@ -473,7 +473,7 @@ nvm()
VERSION=`nvm_version $2` VERSION=`nvm_version $2`
ROOT=`nvm use $VERSION && npm -g root` ROOT=`nvm use $VERSION && npm -g root`
INSTALLS=`nvm use $VERSION > /dev/null && npm -g -p ll | grep "$ROOT\/[^/]\+$" | cut -d '/' -f 8 | cut -d ":" -f 2 | grep -v npm | tr "\n" " "` INSTALLS=`nvm use $VERSION > /dev/null && npm -g -p ll | grep "$ROOT\/[^/]\+$" | cut -d '/' -f 8 | cut -d ":" -f 2 | grep -v npm | tr "\n" " "`
eval "npm install -g $INSTALLS" eval npm install -g $INSTALLS
;; ;;
"clear-cache" ) "clear-cache" )
rm -f $NVM_DIR/v* 2>/dev/null rm -f $NVM_DIR/v* 2>/dev/null