From 273ebedc55a66de0ac361886270ab2539da17f7f Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 18 Mar 2016 00:28:30 -0700 Subject: [PATCH] [Fix] avoid an unbound variable when `nounset` bash option is set. Per https://github.com/creationix/nvm/issues/868#issuecomment-198232952 --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 97d4845..21f3b89 100755 --- a/nvm.sh +++ b/nvm.sh @@ -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