removing old crufty io.js references

This commit is contained in:
AJ ONeal 2017-05-08 19:36:24 +00:00
parent 2cfa00cced
commit 4155a7c639
1 changed files with 4 additions and 4 deletions

View File

@ -152,7 +152,7 @@ esac
# Download installers # # Download installers #
####################### #######################
echo "Preparing to install io.js (and common development dependencies) for ${OS}" "${ARCH}" echo "Preparing to install node.js (and common development dependencies) for ${OS}" "${ARCH}"
INSTALL_FILE="setup-node-${SETUP_FILE}.bash" INSTALL_FILE="setup-node-${SETUP_FILE}.bash"
if [ ! -e "/tmp/${INSTALL_FILE}" ] if [ ! -e "/tmp/${INSTALL_FILE}" ]
@ -176,7 +176,7 @@ then
fi fi
######################### #########################
# Which io.js VERSION ? # # Which node.js VERSION ? #
######################### #########################
if [ -f "/tmp/NODEJS_VER" ]; then if [ -f "/tmp/NODEJS_VER" ]; then
@ -199,10 +199,10 @@ fi
if [ -z "$NODEJS_VER" ]; then if [ -z "$NODEJS_VER" ]; then
if [ -n "$(which curl)" ]; then if [ -n "$(which curl)" ]; then
NODEJS_VER=$(curl -fsL "$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 node.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) \
|| echo 'error automatically determining current io.js version' || echo 'error automatically determining current node.js version'
else else
echo "Found neither 'curl' nor 'wget'. Can't Continue." echo "Found neither 'curl' nor 'wget'. Can't Continue."
exit 1 exit 1