omit false error message

This commit is contained in:
AJ ONeal 2016-03-28 17:19:18 -04:00
parent 1445f20fca
commit 3e0dbfed66
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ fi
if [ -z "$NODEJS_VER" ]; then if [ -z "$NODEJS_VER" ]; then
if [ -n "$(which curl)" ]; then if [ -n "$(which curl)" ]; then
NODEJS_VER=$(curl -fsSL "$NODEJS_BASE_URL/dist/index.tab" | head -2 | tail -1 | cut -f 1) \ NODEJS_VER=$(curl -fsL "$NODEJS_BASE_URL/dist/index.tab" | head -2 | tail -1 | cut -f 1) \
|| echo 'error automatically determining current io.js version' || echo 'error automatically determining current io.js version'
elif [ -n "$(which wget)" ]; then elif [ -n "$(which wget)" ]; then
NODEJS_VER=$(wget --quiet "$NODEJS_BASE_URL/dist/index.tab" -O - | head -2 | tail -1 | cut -f 1) \ NODEJS_VER=$(wget --quiet "$NODEJS_BASE_URL/dist/index.tab" -O - | head -2 | tail -1 | cut -f 1) \

View File

@ -237,7 +237,7 @@ fi
if [ -z "$NODEJS_VER" ]; then if [ -z "$NODEJS_VER" ]; then
if [ -n "$(which curl)" ]; then if [ -n "$(which curl)" ]; then
NODEJS_VER=$(curl -fsSL "$NODEJS_BASE_URL/dist/index.tab" | head -2 | tail -1 | cut -f 1) \ NODEJS_VER=$(curl -fsL "$NODEJS_BASE_URL/dist/index.tab" | head -2 | tail -1 | cut -f 1) \
|| echo "error automatically determining current ${NODEJS_NAME} version" || echo "error automatically determining current ${NODEJS_NAME} version"
elif [ -n "$(which wget)" ]; then elif [ -n "$(which wget)" ]; then
NODEJS_VER=$(wget --quiet "$NODEJS_BASE_URL/dist/index.tab" -O - | head -2 | tail -1 | cut -f 1) \ NODEJS_VER=$(wget --quiet "$NODEJS_BASE_URL/dist/index.tab" -O - | head -2 | tail -1 | cut -f 1) \