[Fix] `set -u`: `nvm install`: fix unbound vars

Fixes #1587.
Jordan Harband 2017-08-08 20:53:51 -07:00
parent 3e1b4591bd
commit cf5272e1a0
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -2535,7 +2535,7 @@ nvm() {
shift
done
if [ -z "$SKIP_DEFAULT_PACKAGES" ] && [ -f "${NVM_DIR}/default-packages" ]; then
if [ -z "${SKIP_DEFAULT_PACKAGES-}" ] && [ -f "${NVM_DIR}/default-packages" ]; then
DEFAULT_PACKAGES=""
# Read lines from $NVM_DIR/default-packages