Use `-f` instead of `-e` in nvm_alias.

master
Jordan Harband 2014-10-02 01:09:28 -07:00
parent 5135577a3c
commit 0eef553a88
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -244,7 +244,7 @@ nvm_alias() {
local NVM_ALIAS_PATH local NVM_ALIAS_PATH
NVM_ALIAS_PATH="$NVM_DIR/alias/$ALIAS" 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.' echo >&2 'Alias does not exist.'
return 2 return 2
fi fi