From 66f69f422b80cc28e93d9e54b7bd7fcd996daae0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 8 Nov 2019 20:30:05 +0100 Subject: bin/check-mirrors: iso might be from *any* date of month --- bin/check-mirrors | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/check-mirrors') diff --git a/bin/check-mirrors b/bin/check-mirrors index 5f9ba22..d0cb2cd 100755 --- a/bin/check-mirrors +++ b/bin/check-mirrors @@ -144,8 +144,9 @@ elif [ $# -eq 1 ]; then curl -s "${ip_flag}" "${url}archisos/" ) || has_isos=0 for suffix in 'i686' 'dual'; do + # shellcheck disable=SC2059 if ! printf '%s\n' "${cnt}" | \ - grep -qF "$(date '+archlinux-%Y.%m.01-'"${suffix}"'.iso')"; then + grep -qF "$(printf "$(date '+archlinux-%Y.%m.%%02d-'"${suffix}"'.iso\n')" $(seq 31))" -; then has_isos=0 break fi -- cgit v1.2.3-70-g09d2