From 362ac8f1ba80caf8dd64f716b2c98d849c807745 Mon Sep 17 00:00:00 2001 From: Dan MacDonald Date: Mon, 1 Jul 2019 18:57:46 +0000 Subject: [PATCH] Ports: Force curl to follow redirects in run_fetch_web() (#266) This fixes downloading files from github when building ports. --- Ports/.port_include.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 7893fe1583..ae727b8b31 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -46,7 +46,7 @@ run_fetch_web() { run_command_nocd rm -rf "$PORT_DIR" fi file=$(basename "$1") - run_command_nocd curl "$1" -o "$file" + run_command_nocd curl -L "$1" -o "$file" mkdir "$PORT_DIR" # may need to make strip-components configurable, as I bet some sick person