[Fix] avoid an unbound variable when `nounset` bash option is set.
Per https://github.com/creationix/nvm/issues/868#issuecomment-198232952
parent
d03f575446
commit
273ebedc55
2
nvm.sh
2
nvm.sh
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue