Create previous error logs if missing (first run)

This commit is contained in:
Benoit S 2021-08-29 09:36:56 +09:00
parent 48764314f9
commit 5bd2b9a9c1

View file

@ -73,6 +73,7 @@ accounts_cull() {
| sort -u \ | sort -u \
> "$OTHER_ERRORS_LOG" > "$OTHER_ERRORS_LOG"
test -f $PREV_ERRORS_LOG || touch $PREV_ERRORS_LOG
while read -r instance; do while read -r instance; do
if grep -q "$instance" $PREV_ERRORS_LOG; then if grep -q "$instance" $PREV_ERRORS_LOG; then
error=false error=false