From 701513faa984858b868ab1b91b80dd4393efaa5b Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 11 Sep 2015 12:43:13 -0600 Subject: [PATCH] prepare to update to nodejs 4.0.0 --- setup.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.bash b/setup.bash index 2ab1018..3bbb7ad 100644 --- a/setup.bash +++ b/setup.bash @@ -9,6 +9,8 @@ # curl -fsSL https://example.com/setup.bash | bash # wget -nv https://example.com/setup.bash -O - | bash +NODEJS_BASE_URL="https://iojs.org" +#NODEJS_BASE_URL="https://nodejs.org" BASE_URL="https://raw.githubusercontent.com/coolaj86/iojs-install-script/master" NO_FAIL2BAN="" OS="unsupported" @@ -213,10 +215,10 @@ fi if [ -z "$IOJS_VER" ]; then if [ -n "$(which curl)" ]; then - IOJS_VER="$(curl -fsSL https://iojs.org/dist/index.tab | head -2 | tail -1 | cut -f 1)" \ + IOJS_VER="$(curl -fsSL "$NODEJS_BASE_URL/dist/index.tab" | head -2 | tail -1 | cut -f 1)" \ || echo 'error automatically determining current io.js version' elif [ -n "$(which wget)" ]; then - IOJS_VER="wget --quiet https://iojs.org/dist/index.tab -O - | head -2 | tail -1 | cut -f 1)" \ + IOJS_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' else echo "Found neither 'curl' nor 'wget'. Can't Continue."