bail when chunks.json doesn't exist

This commit is contained in:
Matthias Wirth
2024-10-28 20:04:09 +01:00
parent 694b8058af
commit 58f3b5e990

View File

@@ -162,6 +162,9 @@ while true; do
next_error=0
error_printed=0
while ! [[ -f "$SRC_DIR/aircraft.json" ]] || ! prune "$SRC_DIR/aircraft.json" "history_$date.json"; do
if ! [[ -f chunks.json ]]; then
break
fi
now=$(date +%s%N | head -c-7)
if (( now > next_error )); then
if (( next_error != 0 )); then