From 5e87e678b27f1a86415eca5ad761af77e8e62086 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 31 Jul 2017 17:17:12 +0200 Subject: syncrepo.sh: Follow http redirects Signed-off-by: Florian Pritz --- syncrepo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncrepo.sh b/syncrepo.sh index 604c00c..4ff6309 100755 --- a/syncrepo.sh +++ b/syncrepo.sh @@ -60,7 +60,7 @@ rsync_cmd() { # if we are called without a tty (cronjob) only run when there are changes -if ! tty -s && [[ -f "$target/lastupdate" ]] && diff -b <(curl -s "$lastupdate_url") "$target/lastupdate" >/dev/null; then +if ! tty -s && [[ -f "$target/lastupdate" ]] && diff -b <(curl -Ls "$lastupdate_url") "$target/lastupdate" >/dev/null; then # keep lastsync file in sync for statistics generated by the Arch Linux website rsync_cmd "$source_url/lastsync" "$target/lastsync" exit 0 -- cgit v1.2.3-24-g4f1b