This commit is contained in:
jojo2357 2026-07-13 13:03:15 -07:00
parent 6cb502b4fd
commit 9acf493f2b
No known key found for this signature in database
GPG key ID: 1E8E264C2C3FD4C2

View file

@ -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