[Fix] `set -u`: when `ALIAS` is unset, don’t reference an unbound variable.

Fixes #1526.
Jordan Harband 2017-05-16 22:58:26 -07:00
parent 7f3145bc98
commit 4f626eac0d
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -3145,7 +3145,7 @@ nvm() {
unset ALIAS
fi
nvm_list_aliases "${ALIAS}"
nvm_list_aliases "${ALIAS-}"
fi
;;
"unalias" )