forked from coolaj86/node-installer.sh
default to current version
This commit is contained in:
parent
5ef5c2ed1d
commit
a40b71b1b1
11
setup.bash
11
setup.bash
|
@ -212,7 +212,16 @@ if [ -f "/tmp/IOJS_VER" ]; then
|
|||
fi
|
||||
|
||||
if [ -z "$IOJS_VER" ]; then
|
||||
IOJS_VER="v1.5.1"
|
||||
if [ -n "$(which curl)" ]; then
|
||||
IOJS_VER="$(curl -fsSL https://iojs.org/dist/index.tab | head -2 | tail -1 | cut -f 1)" \
|
||||
|| echo 'error downloading os setup script'
|
||||
elif [ -n "$(which wget)" ]; then
|
||||
IOJS_VER="wget --quiet https://iojs.org/dist/index.tab | head -2 | tail -1 | cut -f 1)" \
|
||||
|| echo 'error downloading os setup script'
|
||||
else
|
||||
echo "Found neither 'curl' nor 'wget'. Can't Continue."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue