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

Per https://github.com/creationix/nvm/issues/868#issuecomment-198232952
Jordan Harband 2016-03-18 00:28:30 -07:00
parent d03f575446
commit 273ebedc55
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

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