File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ nvm_node_version() {
90
90
91
91
nvm_download () {
92
92
if nvm_has " curl" ; then
93
- curl --fail --compressed -q " $@ "
93
+ command curl --fail --compressed -q " $@ "
94
94
elif nvm_has " wget" ; then
95
95
# Emulate curl with wget
96
96
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
@@ -121,7 +121,7 @@ nvm_download() {
121
121
if nvm_curl_use_compression; then
122
122
CURL_COMPRESSED_FLAG=" --compressed"
123
123
fi
124
- curl --fail ${CURL_COMPRESSED_FLAG:- } -q " $@ "
124
+ command curl --fail ${CURL_COMPRESSED_FLAG:- } -q " $@ "
125
125
elif nvm_has " wget" ; then
126
126
# Emulate curl with wget
127
127
ARGS=$( nvm_echo " $@ " | command sed -e ' s/--progress-bar /--progress=bar /' \
@@ -470,7 +470,7 @@ nvm_clang_version() {
470
470
}
471
471
472
472
nvm_curl_version () {
473
- curl -V | command awk ' { if ($1 == "curl") print $2 }' | command sed ' s/-.*$//g'
473
+ command curl -V | command awk ' { if ($1 == "curl") print $2 }' | command sed ' s/-.*$//g'
474
474
}
475
475
476
476
nvm_version_greater () {
You can’t perform that action at this time.
0 commit comments