[Fix] `set -u`: `nvm install`: fix unbound vars
Fixes #1587.
parent
3e1b4591bd
commit
cf5272e1a0
2
nvm.sh
2
nvm.sh
|
@ -2535,7 +2535,7 @@ nvm() {
|
||||||
shift
|
shift
|
||||||
done
|
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=""
|
DEFAULT_PACKAGES=""
|
||||||
|
|
||||||
# Read lines from $NVM_DIR/default-packages
|
# Read lines from $NVM_DIR/default-packages
|
||||||
|
|
Loading…
Reference in New Issue