Patch for --reinstall-from on Ubuntu/bash

I had a problem with xargs when installing on Ubuntu 14, bash version:
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
This edit fixes it
This commit is contained in:
tudorilisoi 2016-01-02 13:10:18 +02:00
parent 6094dac1c1
commit b6fe752cdd
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -1346,7 +1346,7 @@ nvm_npm_global_modules() {
fi fi
local INSTALLS local INSTALLS
INSTALLS=$(echo "$NPMLIST" | command sed -e '/ -> / d' -e '/\(empty\)/ d' -e 's/^.* \(.*@[^ ]*\).*/\1/' -e '/^npm@[^ ]*.*$/ d' | command xargs) INSTALLS=$(echo "$NPMLIST" | command sed -e '/ -> / d' -e '/\(empty\)/ d' -e 's/^.* \(.*@[^ ]*\).*/\1/' -e '/^npm@[^ ]*.*$/ d' | command xargs -0)
local LINKS local LINKS
LINKS="$(echo "$NPMLIST" | command sed -n 's/.* -> \(.*\)/\1/ p')" LINKS="$(echo "$NPMLIST" | command sed -n 's/.* -> \(.*\)/\1/ p')"