mirror of
https://github.com/jojo2357/kiwix-zim-updater.git
synced 2026-11-30 03:46:21 -05:00
comment
This commit is contained in:
parent
6cb502b4fd
commit
9acf493f2b
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue