fix unbound var

This commit is contained in:
AJ ONeal 2018-09-14 06:46:56 +00:00
parent 509ee32688
commit b8acbae85f
1 changed files with 5 additions and 1 deletions

View File

@ -232,7 +232,11 @@ fi
######################### #########################
NODE_VERSION=${NODE_VERSION:-} NODE_VERSION=${NODE_VERSION:-}
NODEJS_VER=${NODE_VERSION:-$NODEJS_VER} NODEJS_VER=${NODEJS_VER:-}
if [ -z "${NODEJS_VER:-}" ]; then
NODEJS_VER=$NODE_VERSION
fi
if [ -z "${NODEJS_VER:-}" ]; then if [ -z "${NODEJS_VER:-}" ]; then
# For backwards compat # For backwards compat
if [ -f "$my_tmp/NODEJS_VER" ]; then if [ -f "$my_tmp/NODEJS_VER" ]; then