mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-02-05 17:32:47 +08:00
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:
@@ -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 /' \
|
||||
|
||||
Reference in New Issue
Block a user