Use `-f` instead of `-e` in nvm_alias.
parent
5135577a3c
commit
0eef553a88
2
nvm.sh
2
nvm.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue