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

Per https://github.com/creationix/nvm/issues/868#issuecomment-198232952
This commit is contained in:
Jordan Harband 2016-03-18 00:28:30 -07:00
parent d03f575446
commit 273ebedc55

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"
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