From 29c6fa85373324c027c4ca3965707422187881d6 Mon Sep 17 00:00:00 2001 From: jelle van der Waa Date: Tue, 15 Oct 2019 23:17:00 +0200 Subject: sogrep: redirect to destination mirror (#25) Some mirrors redirect consumers to a near by mirror which isn't handled by sogrep. --- sogrep.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sogrep.in b/sogrep.in index 055c61f..ce7b21e 100755 --- a/sogrep.in +++ b/sogrep.in @@ -41,7 +41,7 @@ recache() { for arch in "${arches[@]}"; do rm -rf "${SOCACHE_DIR}/${arch}/${repo}" mkdir -p "${SOCACHE_DIR}/${arch}/${repo}" - curl "$verbosity" "${SOLINKS_MIRROR}/${repo}/os/${arch}/${repo}.links.tar.gz" | bsdtar -xf - -C "${SOCACHE_DIR}/${arch}/${repo}" + curl -L "$verbosity" "${SOLINKS_MIRROR}/${repo}/os/${arch}/${repo}.links.tar.gz" | bsdtar -xf - -C "${SOCACHE_DIR}/${arch}/${repo}" done done } -- cgit v1.2.3-70-g09d2