fix wget command
This commit is contained in:
parent
d8c75b08f4
commit
80b80bbfc6
|
@ -183,7 +183,7 @@ if [ -z "$NODEJS_VER" ]; then
|
||||||
NODEJS_VER="$(curl -fsSL "$NODEJS_BASE_URL/dist/index.tab" | head -2 | tail -1 | cut -f 1)" \
|
NODEJS_VER="$(curl -fsSL "$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)" \
|
||||||
|| echo 'error automatically determining current io.js version'
|
|| echo 'error automatically determining current io.js version'
|
||||||
else
|
else
|
||||||
echo "Found neither 'curl' nor 'wget'. Can't Continue."
|
echo "Found neither 'curl' nor 'wget'. Can't Continue."
|
||||||
|
|
Loading…
Reference in New Issue