mirror of
https://github.com/jojo2357/kiwix-zim-updater.git
synced 2026-10-26 02:48:36 -04:00
Remove False Alarm
If the newest zim and torrent both existed, would give strange message
This commit is contained in:
parent
db2e337b96
commit
72aa3666fc
2 changed files with 2 additions and 2 deletions
|
|
@ -482,7 +482,7 @@ for ((i = 0; i < ${#LocalZIMNameArray[@]}; i++)); do
|
|||
MatchingFullPath=${RemotePaths[$RemoteIndex]}
|
||||
MatchingCategory=${RemoteCategory[$RemoteIndex]}
|
||||
|
||||
[[ -f "$ZIMPath$MatchingFileName.torrent" ]] && echo -e "${YELLOW_REGULAR} Torrent already downloaded\n${GREEN_BOLD} ✓ Online Version Found${CLEAR}\n" && LocalRequiresDownloadArray+=(0) && continue
|
||||
[[ -f "$ZIMPath$MatchingFileName.torrent" ]] && ! [[ -f "$ZIMPath$MatchingFileName" ]] && echo -e "${YELLOW_REGULAR} Torrent already downloaded\n${GREEN_BOLD} ✓ Online Version Found${CLEAR}\n" && LocalRequiresDownloadArray+=(0) || continue
|
||||
|
||||
MatchedDate="$(echo "$MatchingFileName" | grep -oP '\d{4}-\d{2}(?=\.zim$)')"
|
||||
MatchedYear="$(echo "$MatchedDate" | grep -oP '\d{4}(?=-\d{2})')"
|
||||
|
|
|
|||
|
|
@ -482,7 +482,7 @@ for ((i = 0; i < ${#LocalZIMNameArray[@]}; i++)); do
|
|||
MatchingFullPath=${RemotePaths[$RemoteIndex]}
|
||||
MatchingCategory=${RemoteCategory[$RemoteIndex]}
|
||||
|
||||
[[ -f "$ZIMPath$MatchingFileName.torrent" ]] && echo -e "${YELLOW_REGULAR} Torrent already downloaded\n${GREEN_BOLD} ✓ Online Version Found${CLEAR}\n" && LocalRequiresDownloadArray+=(0) && continue
|
||||
[[ -f "$ZIMPath$MatchingFileName.torrent" ]] && ! [[ -f "$ZIMPath$MatchingFileName" ]] && echo -e "${YELLOW_REGULAR} Torrent already downloaded\n${GREEN_BOLD} ✓ Online Version Found${CLEAR}\n" && LocalRequiresDownloadArray+=(0) || continue
|
||||
|
||||
MatchedDate="$(echo "$MatchingFileName" | grep -oP '\d{4}-\d{2}(?=\.zim$)')"
|
||||
MatchedYear="$(echo "$MatchedDate" | grep -oP '\d{4}(?=-\d{2})')"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue