mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 14:51:49 +00:00
Fix curl/wget detection. Fixes #478
This commit is contained in:
parent
fafbeb8c59
commit
ca43ca21f5
2
nvm.sh
2
nvm.sh
@ -317,7 +317,7 @@ nvm() {
|
|||||||
version_not_provided=0
|
version_not_provided=0
|
||||||
local provided_version
|
local provided_version
|
||||||
|
|
||||||
if ! nvm_has "nvm_download"; then
|
if ! nvm_has "curl" && ! nvm_has "wget"; then
|
||||||
echo 'nvm needs curl or wget to proceed.' >&2;
|
echo 'nvm needs curl or wget to proceed.' >&2;
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user