Remove False Alarm

If the newest zim and torrent both existed, would give strange message
This commit is contained in:
jojo2357 2024-08-05 18:35:02 -06:00
parent db2e337b96
commit 72aa3666fc
No known key found for this signature in database
GPG key ID: 1E8E264C2C3FD4C2
2 changed files with 2 additions and 2 deletions

View file

@ -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})')"

View file

@ -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})')"