Should escape grep in copy-packages.

master
egilkh 2014-08-20 15:09:40 +02:00 committed by Egil Hanger
parent 213ff003d0
commit 938feca6a9
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -748,7 +748,7 @@ nvm() {
# declare local INSTALLS first, otherwise it doesn't work in zsh # declare local INSTALLS first, otherwise it doesn't work in zsh
local INSTALLS 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 npm install -g --quiet $INSTALLS
;; ;;