From cf5272e1a024400de0539c5d0d89d56b4963642c Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 8 Aug 2017 20:53:51 -0700 Subject: [PATCH] [Fix] `set -u`: `nvm install`: fix unbound vars Fixes #1587. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 11e774f..ccd6bc1 100644 --- a/nvm.sh +++ b/nvm.sh @@ -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