mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Use -f
instead of -e
in nvm_alias.
This commit is contained in:
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
Block a user