File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ nvm_node_version() {
106
106
107
107
nvm_download () {
108
108
if nvm_has " curl" ; then
109
- curl --fail --compressed -q " $@ "
109
+ command curl --fail --compressed -q " $@ "
110
110
elif nvm_has " wget" ; then
111
111
# Emulate curl with wget
112
112
ARGS=$( nvm_echo " $@ " | command sed -e ' s/--progress-bar /--progress=bar /' \
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ nvm_get_latest() {
101
101
if nvm_curl_use_compression; then
102
102
CURL_COMPRESSED_FLAG=" --compressed"
103
103
fi
104
- NVM_LATEST_URL=" $( curl ${CURL_COMPRESSED_FLAG:- } -q -w " %{url_effective}\\ n" -L -s -S https://latest.nvm.sh -o /dev/null) "
104
+ NVM_LATEST_URL=" $( command curl ${CURL_COMPRESSED_FLAG:- } -q -w " %{url_effective}\\ n" -L -s -S https://latest.nvm.sh -o /dev/null) "
105
105
elif nvm_has " wget" ; then
106
106
NVM_LATEST_URL=" $( wget -q https://latest.nvm.sh --server-response -O /dev/null 2>&1 | command awk ' /^ Location: /{DEST=$2} END{ print DEST }' ) "
107
107
else
@@ -133,7 +133,7 @@ nvm_download() {
133
133
for arg in " $@ " ; do
134
134
NVM_DOWNLOAD_ARGS=" ${NVM_DOWNLOAD_ARGS} \" $arg \" "
135
135
done
136
- eval " curl -q --fail ${CURL_COMPRESSED_FLAG:- } ${CURL_HEADER_FLAG:- } ${NVM_DOWNLOAD_ARGS} "
136
+ eval " command 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
139
ARGS=$( nvm_echo " $@ " | command sed -e ' s/--progress-bar /--progress=bar /' \
You can’t perform that action at this time.
0 commit comments