From 9da5a23304e585da52359e35eb91177cca446f87 Mon Sep 17 00:00:00 2001 From: Reuben Cummings Date: Wed, 29 Oct 2014 08:45:54 +0300 Subject: [PATCH] Ignore aliases (fixes #536) A better solution would be to see if the installed `sha1` supports the `-q` option and use a fallback command if it doesn't. But this way, if you create a `sha1` alias on mac, nvm will at least install node. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index de5a5af..101c151 100644 --- a/nvm.sh +++ b/nvm.sh @@ -9,7 +9,7 @@ NVM_SCRIPT_SOURCE="$_" nvm_has() { - type "$1" > /dev/null 2>&1 + which "$1" > /dev/null 2>&1 } nvm_download() {