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.
This commit is contained in:
Reuben Cummings 2014-10-29 08:45:54 +03:00
parent d30c0fe146
commit 9da5a23304

2
nvm.sh
View File

@ -9,7 +9,7 @@
NVM_SCRIPT_SOURCE="$_" NVM_SCRIPT_SOURCE="$_"
nvm_has() { nvm_has() {
type "$1" > /dev/null 2>&1 which "$1" > /dev/null 2>&1
} }
nvm_download() { nvm_download() {