From 0eef553a8862c4e4d60ca40a93efc35bb177f730 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 2 Oct 2014 01:09:28 -0700 Subject: [PATCH] Use `-f` instead of `-e` in nvm_alias. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 7e000af..4d7170d 100644 --- a/nvm.sh +++ b/nvm.sh @@ -244,7 +244,7 @@ nvm_alias() { local NVM_ALIAS_PATH NVM_ALIAS_PATH="$NVM_DIR/alias/$ALIAS" - if [ ! -e "$NVM_ALIAS_PATH" ]; then + if [ ! -f "$NVM_ALIAS_PATH" ]; then echo >&2 'Alias does not exist.' return 2 fi