Browse Source

Fix log filename finder not checking for compressed files

master
JustAnotherArchivist 1 year ago
parent
commit
20cbbc8603
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      codearchiver-bot

+ 2
- 2
codearchiver-bot View File

@@ -142,9 +142,9 @@ function respond {

# Find nonexistent filename for log file (*not* concurrency-safe!)
logbasename="$(date +%Y%m%dT%H%M%SZ)_${singlejobid}"
if [[ -e "${logbasename}_codearchiver.log" ]]; then
if [[ -e "${logbasename}_codearchiver.log" || -e "${logbasename}_codearchiver.log.zst" ]]; then
for ((j=0; ; ++j)); do
if [[ ! -e "${logbasename}_coll${j}_codearchiver.log" ]]; then
if [[ ! -e "${logbasename}_coll${j}_codearchiver.log" || -e "${logbasename}_coll${j}_codearchiver.log.zst" ]]; then
break
fi
done


Loading…
Cancel
Save