index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-02-06 18:49:42 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-02-06 18:51:11 +0100 |
commit | a137bfd03629b2084db412a6dfa304eb1caa87b7 (patch) | |
tree | c59fd6d271478a2ec47a635431bdd167cec58aa5 /bin | |
parent | f044a6550f668a0c73ef67fd347d4d103dc07ce5 (diff) |
-rwxr-xr-x | bin/check-mirrors | 8 |
diff --git a/bin/check-mirrors b/bin/check-mirrors index 696ded6..3ea1c04 100755 --- a/bin/check-mirrors +++ b/bin/check-mirrors @@ -90,7 +90,7 @@ elif [ $# -eq 1 ]; then # shellcheck disable=SC2016 printf '%s' "${url#* }" | \ base64 -d | \ - sed 's,/\$arch/\$repo$,,' + sed 's,/\$arch/\$repo$,/,' ) start=$( date '+%s.%N' @@ -98,7 +98,7 @@ elif [ $# -eq 1 ]; then success=1 has_ipv4=1 if last_sync=$( - curl -4 -s "${url}/lastsync" + curl -4 -s "${url}lastsync" ); then if printf '%s' "${last_sync}" | \ tr '\n' 'X' | \ @@ -110,7 +110,7 @@ elif [ $# -eq 1 ]; then fi has_ipv6=1 if cnt=$( - curl -6 -s "${url}/lastsync" + curl -6 -s "${url}lastsync" ); then if printf '%s' "${cnt}" | \ tr '\n' 'X' | \ @@ -132,7 +132,7 @@ elif [ $# -eq 1 ]; then if [ ${success} -eq 1 ]; then has_isos=1 cnt=$( - curl -s "${ip_flag}" "${url}/archisos/" + curl -s "${ip_flag}" "${url}archisos/" ) || has_isos=0 for suffix in 'i686' 'dual'; do if ! printf '%s\n' "${cnt}" | \ |