From 32839e69baed8b167713f67f0d9574ea7aee56ad Mon Sep 17 00:00:00 2001 From: coolaj86 Date: Thu, 2 Nov 2017 04:20:56 +0000 Subject: [PATCH] add -L to curl to follow redirects --- setup.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.bash b/setup.bash index 0808440..b053776 100644 --- a/setup.bash +++ b/setup.bash @@ -173,7 +173,7 @@ INSTALL_DEPS_FILE="setup-deps-${SETUP_FILE}.bash" INSTALL_FILE="setup-node-${SETUP_FILE}.bash" if [ ! -e "/tmp/${INSTALL_FILE}" ]; 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' elif [ -n "$(type -p wget)" ]; then wget --quiet "${BASE_URL}/${INSTALL_FILE}" \ @@ -187,7 +187,7 @@ fi if [ -z "$dont_install_deps" ]; then if [ ! -e "/tmp/${INSTALL_DEPS_FILE}" ]; 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}" elif [ -n "$(type -p wget)" ]; then wget --quiet "${BASE_URL}/${INSTALL_DEPS_FILE}" \