From 938feca6a96dd63afb063ce0e8574691600bb165 Mon Sep 17 00:00:00 2001 From: egilkh Date: Wed, 20 Aug 2014 15:09:40 +0200 Subject: [PATCH] Should escape grep in copy-packages. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 856bebd..98e6228 100644 --- a/nvm.sh +++ b/nvm.sh @@ -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 ;;