mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
[Fix] install
: fix method=script install condition
Fixes #2665; see 8937917
This commit is contained in:
parent
275001b066
commit
4856407d26
2
.github/workflows/windows-npm.yml
vendored
2
.github/workflows/windows-npm.yml
vendored
@ -108,7 +108,7 @@ jobs:
|
|||||||
- '10'
|
- '10'
|
||||||
method:
|
method:
|
||||||
- ''
|
- ''
|
||||||
# - 'script' # TODO: uncomment this.
|
- 'script'
|
||||||
steps:
|
steps:
|
||||||
- uses: Vampire/setup-wsl@v1
|
- uses: Vampire/setup-wsl@v1
|
||||||
with:
|
with:
|
||||||
|
@ -373,7 +373,7 @@ nvm_do_install() {
|
|||||||
fi
|
fi
|
||||||
install_nvm_from_git
|
install_nvm_from_git
|
||||||
elif [ "${METHOD}" = 'script' ]; then
|
elif [ "${METHOD}" = 'script' ]; then
|
||||||
if ! nvm_has curl || nvm_has wget; then
|
if ! nvm_has curl && ! nvm_has wget; then
|
||||||
nvm_echo >&2 "You need curl or wget to install nvm"
|
nvm_echo >&2 "You need curl or wget to install nvm"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user