Browse Source

[Fix] avoid an unbound variable when `nounset` bash option is set.

Per https://github.com/creationix/nvm/issues/868#issuecomment-198232952
Jordan Harband 9 years ago
parent
commit
273ebedc55
  1. 2
      nvm.sh

2
nvm.sh

@ -92,7 +92,7 @@ if [ -z "${NVM_NODEJS_ORG_MIRROR-}" ]; then @@ -92,7 +92,7 @@ if [ -z "${NVM_NODEJS_ORG_MIRROR-}" ]; then
export NVM_NODEJS_ORG_MIRROR="https://nodejs.org/dist"
fi
if [ -z "$NVM_IOJS_ORG_MIRROR" ]; then
if [ -z "${NVM_IOJS_ORG_MIRROR-}" ]; then
export NVM_IOJS_ORG_MIRROR="https://iojs.org/dist"
fi

Loading…
Cancel
Save