diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-07-31 17:17:12 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-07-31 17:17:12 +0200 |
commit | 5e87e678b27f1a86415eca5ad761af77e8e62086 (patch) | |
tree | 671116d67f0bea0ec6b7ac55c93ee94251eb08dd | |
parent | 4b086642abb0a2d225f5c132a507952018af62bc (diff) | |
download | bin-5e87e678b27f1a86415eca5ad761af77e8e62086.tar.gz bin-5e87e678b27f1a86415eca5ad761af77e8e62086.tar.xz |
syncrepo.sh: Follow http redirects
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | syncrepo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |