From a137bfd03629b2084db412a6dfa304eb1caa87b7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 6 Feb 2019 18:49:42 +0100 Subject: bin/check-mirrors: urls should include the trailing / --- bin/check-mirrors | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/check-mirrors') 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}" | \ -- cgit v1.2.3