forked from coolaj86/node-installer.sh
fix error message
This commit is contained in:
parent
339c4b83bd
commit
c09719e26a
|
@ -214,10 +214,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)" \
|
||||
|| echo 'error downloading os setup script'
|
||||
|| echo 'error automatically determining current io.js version'
|
||||
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'
|
||||
|| echo 'error automatically determining current io.js version'
|
||||
else
|
||||
echo "Found neither 'curl' nor 'wget'. Can't Continue."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue