mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-02-27 10:25:31 +08:00
Call help
instead of --help
`--help` is only available on newer versions of nvm, `help` is backwards compatible
This commit is contained in:
parent
a7b8594684
commit
86b7f6c1a9
@ -62,7 +62,7 @@ nvm_update() {
|
|||||||
_zsh_nvm_upgrade() {
|
_zsh_nvm_upgrade() {
|
||||||
|
|
||||||
# Use default upgrade if it's built in
|
# Use default upgrade if it's built in
|
||||||
if _zsh_nvm_nvm --help | grep -q 'nvm upgrade'; then
|
if [[ "$(_zsh_nvm_nvm help | grep 'nvm upgrade')" ]]; then
|
||||||
_zsh_nvm_nvm upgrade
|
_zsh_nvm_nvm upgrade
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user