Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-06 18:49:42 +0100
committerErich Eckner <git@eckner.net>2019-02-06 18:51:11 +0100
commita137bfd03629b2084db412a6dfa304eb1caa87b7 (patch)
treec59fd6d271478a2ec47a635431bdd167cec58aa5 /bin
parentf044a6550f668a0c73ef67fd347d4d103dc07ce5 (diff)
bin/check-mirrors: urls should include the trailing /
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check-mirrors8
1 files changed, 4 insertions, 4 deletions
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}" | \