From 86b7f6c1a980df28bcee4ce7f005ee583786c16c Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Tue, 26 Jul 2016 23:30:53 +0100 Subject: [PATCH] Call `help` instead of `--help` `--help` is only available on newer versions of nvm, `help` is backwards compatible --- zsh-nvm.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index a99d5ce..49e0437 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -62,7 +62,7 @@ nvm_update() { _zsh_nvm_upgrade() { # 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 return fi