forked from coolaj86/node-installer.sh
add -L to curl to follow redirects
This commit is contained in:
parent
4090196e84
commit
32839e69ba
|
@ -173,7 +173,7 @@ INSTALL_DEPS_FILE="setup-deps-${SETUP_FILE}.bash"
|
||||||
INSTALL_FILE="setup-node-${SETUP_FILE}.bash"
|
INSTALL_FILE="setup-node-${SETUP_FILE}.bash"
|
||||||
if [ ! -e "/tmp/${INSTALL_FILE}" ]; then
|
if [ ! -e "/tmp/${INSTALL_FILE}" ]; then
|
||||||
if [ -n "$(type -p curl)" ]; then
|
if [ -n "$(type -p curl)" ]; then
|
||||||
curl --silent "${BASE_URL}/${INSTALL_FILE}" \
|
curl --silent -L "${BASE_URL}/${INSTALL_FILE}" \
|
||||||
-o "/tmp/${INSTALL_FILE}" || echo 'error downloading os setup script'
|
-o "/tmp/${INSTALL_FILE}" || echo 'error downloading os setup script'
|
||||||
elif [ -n "$(type -p wget)" ]; then
|
elif [ -n "$(type -p wget)" ]; then
|
||||||
wget --quiet "${BASE_URL}/${INSTALL_FILE}" \
|
wget --quiet "${BASE_URL}/${INSTALL_FILE}" \
|
||||||
|
@ -187,7 +187,7 @@ fi
|
||||||
if [ -z "$dont_install_deps" ]; then
|
if [ -z "$dont_install_deps" ]; then
|
||||||
if [ ! -e "/tmp/${INSTALL_DEPS_FILE}" ]; then
|
if [ ! -e "/tmp/${INSTALL_DEPS_FILE}" ]; then
|
||||||
if [ -n "$(type -p curl)" ]; then
|
if [ -n "$(type -p curl)" ]; then
|
||||||
curl --silent "${BASE_URL}/${INSTALL_DEPS_FILE}" \
|
curl --silent -L "${BASE_URL}/${INSTALL_DEPS_FILE}" \
|
||||||
-o "/tmp/${INSTALL_DEPS_FILE}" || echo 'error downloading os deps script: '"${BASE_URL}/${INSTALL_DEPS_FILE}"
|
-o "/tmp/${INSTALL_DEPS_FILE}" || echo 'error downloading os deps script: '"${BASE_URL}/${INSTALL_DEPS_FILE}"
|
||||||
elif [ -n "$(type -p wget)" ]; then
|
elif [ -n "$(type -p wget)" ]; then
|
||||||
wget --quiet "${BASE_URL}/${INSTALL_DEPS_FILE}" \
|
wget --quiet "${BASE_URL}/${INSTALL_DEPS_FILE}" \
|
||||||
|
|
Loading…
Reference in New Issue