`nvm alias`: If the alias target is empty, call into `nvm unalias`
parent
4df2a7fca9
commit
1eb4d482e0
5
nvm.sh
5
nvm.sh
|
@ -2315,9 +2315,8 @@ $NVM_LS_REMOTE_POST_MERGED_OUTPUT" | command grep -v "N/A" | command sed '/^$/d'
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [ -z "${3-}" ]; then
|
if [ -z "${3-}" ]; then
|
||||||
command rm -f "$NVM_ALIAS_DIR/$2"
|
nvm unalias "${2-}"
|
||||||
echo "${2-} -> *poof*"
|
return $?
|
||||||
return
|
|
||||||
fi
|
fi
|
||||||
VERSION="$(nvm_version "${3-}")"
|
VERSION="$(nvm_version "${3-}")"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue