From 9acf493f2b2cf5289e5ba617bbf3fff7183b0c19 Mon Sep 17 00:00:00 2001 From: jojo2357 <66704796+jojo2357@users.noreply.github.com> Date: Mon, 13 Jul 2026 13:03:15 -0700 Subject: [PATCH] comment --- kiwix-zim-updater.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiwix-zim-updater.sh b/kiwix-zim-updater.sh index b327058..9ccbe70 100755 --- a/kiwix-zim-updater.sh +++ b/kiwix-zim-updater.sh @@ -309,7 +309,8 @@ flags() { ScanYear="$(echo "$ScanDate" | grep -oP "$YEAR_REGEX(?=-$MONTH_REGEX)")" ScanMonth="$(echo "$ScanDate" | grep -oP "(?<=$YEAR_REGEX-)$MONTH_REGEX")" - # this file is not shadowed if it is newer + # this file is not shadowed if it is newer. + # this is caused by `ls -1` and `sort` having weird lexicons that make the prefix sort unreliable that 02a can sort between 01 and 02 instead of after 02 if [[ $MyYear > $ScanYear ]]; then echo "Disregarding ${LocalZIMArray[$scanIndex]} because it is shadowed by ${LocalZIMArray[$index]}" >> download.log duplicated=2