From 908b1e94a019f5e9871838993b66e7d7531c2957 Mon Sep 17 00:00:00 2001 From: Stewart Johnston Date: Wed, 20 Aug 2014 11:13:39 +1000 Subject: [PATCH] Fix #266. Set curl to follow redirects raw.github.com has moved to ra.githubusercontent.com, but curl does not follow redirects by default. Adding the -L flag to curl invocations sets curl to follow redirects. --- installers/arch.sh | 2 +- installers/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installers/arch.sh b/installers/arch.sh index ffc04af..637bd83 100755 --- a/installers/arch.sh +++ b/installers/arch.sh @@ -1,5 +1,5 @@ UPDATE_URL="https://raw.github.com/marcuswhybrow/minecraft-server-manager/master" -curl "${UPDATE_URL}/installers/common.sh" -o /tmp/msmcommon.sh #wget isn't installed on Arch by default +curl -L "${UPDATE_URL}/installers/common.sh" -o /tmp/msmcommon.sh #wget isn't installed on Arch by default source /tmp/msmcommon.sh && rm -f /tmp/msmcommon.sh function update_system_packages() { diff --git a/installers/install.sh b/installers/install.sh index 4675ad8..9694c2b 100644 --- a/installers/install.sh +++ b/installers/install.sh @@ -16,7 +16,7 @@ function check_os() { function get_installer() { type curl 1>/dev/null 2>&1 if [[ $? -eq 0 ]]; then - curl "${BASE_URL}/${INSTALL_SCRIPT}" -o /tmp/msminst.sh + curl -L "${BASE_URL}/${INSTALL_SCRIPT}" -o /tmp/msminst.sh else wget -q "${BASE_URL}/${INSTALL_SCRIPT}" -O /tmp/msminst.sh fi