bypass aliased curl

Meanwhile keeping nvm_curl_version and nvm_curl_libz_support as-is
to avoid breaking tests which redefines `curl` as a shell function.
This commit is contained in:
ryenus
2023-01-10 15:32:47 +08:00
committed by Jordan Harband
parent b77fcec399
commit 996ae54fde
2 changed files with 3 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ nvm_node_version() {
nvm_download() {
if nvm_has "curl"; then
curl --fail --compressed -q "$@"
command curl --fail --compressed -q "$@"
elif nvm_has "wget"; then
# Emulate curl with wget
ARGS=$(nvm_echo "$@" | command sed -e 's/--progress-bar /--progress=bar /' \