From b8acbae85f9e77c4f9d1edcbb50fa58b0e1a41e8 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 14 Sep 2018 06:46:56 +0000 Subject: [PATCH] fix unbound var --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index ca0a49f..445abb3 100644 --- a/install.sh +++ b/install.sh @@ -232,7 +232,11 @@ fi ######################### 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 # For backwards compat if [ -f "$my_tmp/NODEJS_VER" ]; then