Fix issue in copy-packages

$INSTALLS passed as string argument to npm install =>`npm install -g "bower@0.9.2 grunt-cli"` would only install the first package `bower@0.9.2`.

Modified that to be `eval "npm install -g $INSTALLS"`.
This commit is contained in:
Nicolas Rakoto 2013-04-30 21:41:41 +03:00
parent 6c3708d337
commit 0108783c3a

2
nvm.sh
View File

@ -473,7 +473,7 @@ nvm()
VERSION=`nvm_version $2`
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" " "`
npm install -g $INSTALLS
eval "npm install -g $INSTALLS"
;;
"clear-cache" )
rm -f $NVM_DIR/v* 2>/dev/null