Browse Source

Should escape grep in copy-packages.

master
egilkh 11 years ago committed by Egil Hanger
parent
commit
938feca6a9
  1. 2
      nvm.sh

2
nvm.sh

@ -748,7 +748,7 @@ nvm() { @@ -748,7 +748,7 @@ nvm() {
# declare local INSTALLS first, otherwise it doesn't work in zsh
local INSTALLS
INSTALLS=$(nvm use $VERSION > /dev/null && npm list --global --parseable --depth=0 2> /dev/null | tail -n +2 | grep -o -e '/[^/]*$' | cut -c 2- | xargs)
INSTALLS=$(nvm use $VERSION > /dev/null && npm list --global --parseable --depth=0 2> /dev/null | tail -n +2 | \grep -o -e '/[^/]*$' | cut -c 2- | xargs)
npm install -g --quiet $INSTALLS
;;

Loading…
Cancel
Save