index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-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}" | \ |