From 5bd2b9a9c19b19ddf05e09aaa06bebd11a448cad Mon Sep 17 00:00:00 2001 From: Benoit S Date: Sun, 29 Aug 2021 09:36:56 +0900 Subject: [PATCH] Create previous error logs if missing (first run) --- tootpaste.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tootpaste.sh b/tootpaste.sh index 726a1d1..23b3e60 100644 --- a/tootpaste.sh +++ b/tootpaste.sh @@ -73,6 +73,7 @@ accounts_cull() { | sort -u \ > "$OTHER_ERRORS_LOG" + test -f $PREV_ERRORS_LOG || touch $PREV_ERRORS_LOG while read -r instance; do if grep -q "$instance" $PREV_ERRORS_LOG; then error=false