File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -136,15 +136,17 @@ nvm_download() {
136
136
eval " curl -q --fail ${CURL_COMPRESSED_FLAG:- } ${CURL_HEADER_FLAG:- } ${NVM_DOWNLOAD_ARGS} "
137
137
elif nvm_has " wget" ; then
138
138
# Emulate curl with wget
139
- ARGS=$( nvm_echo " $@ " | command sed -e ' s/--progress-bar /--progress=bar /' \
140
- -e ' s/--compressed //' \
141
- -e ' s/--fail //' \
142
- -e ' s/-L //' \
143
- -e ' s/-I /--server-response /' \
144
- -e ' s/-s /-q /' \
145
- -e ' s/-sS /-nv /' \
146
- -e ' s/-o /-O /' \
147
- -e ' s/-C - /-c /' )
139
+ ARGS=$( nvm_echo " $@ " | command sed "
140
+ s/--progress-bar /--progress=bar /
141
+ s/--compressed //
142
+ s/--fail //
143
+ s/-L //
144
+ s/-I /--server-response /
145
+ s/-s /-q /
146
+ s/-sS /-nv /
147
+ s/-o /-O /
148
+ s/-C - /-c /
149
+ " )
148
150
149
151
if [ -n " ${NVM_AUTH_HEADER:- } " ]; then
150
152
ARGS=" ${ARGS} --header \" ${NVM_AUTH_HEADER} \" "
@@ -2732,7 +2734,7 @@ nvm_npm_global_modules() {
2732
2734
local NPMLIST
2733
2735
local VERSION
2734
2736
VERSION=" $1 "
2735
- NPMLIST=$( nvm use " ${VERSION} " > /dev/null && npm list -g --depth=0 2> /dev/null | command sed 1,1d | nvm_grep -v ' UNMET PEER DEPENDENCY' )
2737
+ NPMLIST=$( nvm use " ${VERSION} " > /dev/null && npm list -g --depth=0 2> /dev/null | command sed -e ' 1d ' -e ' / UNMET PEER DEPENDENCY/d ' )
2736
2738
2737
2739
local INSTALLS
2738
2740
INSTALLS=$( nvm_echo " ${NPMLIST} " | command sed -e ' / -> / d' -e ' /\(empty\)/ d' -e ' s/^.* \(.*@[^ ]*\).*/\1/' -e ' /^npm@[^ ]*.*$/ d' | command xargs)
You can’t perform that action at this time.
0 commit comments