fix for unbound var

Cette révision appartient à :
AJ ONeal 2018-05-12 14:37:54 -06:00
Parent 5af26c6c86
révision a443dd04d3
1 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

@ -234,7 +234,7 @@ if [ -z "${NODEJS_VER:-}" ]; then
fi fi
fi fi
if [ -n "$NODEJS_VER" ]; then if [ -n "${NODEJS_VER:-}" ]; then
NODEJS_VERT=$(echo ${NODEJS_VER} | cut -c 2- | cut -d '.' -f1) NODEJS_VERT=$(echo ${NODEJS_VER} | cut -c 2- | cut -d '.' -f1)
if [ $NODEJS_VERT -ge 1 ] && [ $NODEJS_VERT -lt 4 ] if [ $NODEJS_VERT -ge 1 ] && [ $NODEJS_VERT -lt 4 ]
@ -245,7 +245,7 @@ if [ -n "$NODEJS_VER" ]; then
fi fi
fi fi
if [ -z "$NODEJS_VER" ]; then if [ -z "${NODEJS_VER:-}" ]; then
if [ -n "$(type -p curl)" ]; then if [ -n "$(type -p curl)" ]; then
NODEJS_VER=$(curl -fsL "$NODEJS_BASE_URL/dist/index.tab" | head -n 2 | tail -1 | cut -f 1) \ NODEJS_VER=$(curl -fsL "$NODEJS_BASE_URL/dist/index.tab" | head -n 2 | tail -1 | cut -f 1) \
|| echo 'error automatically determining current node.js version' || echo 'error automatically determining current node.js version'