diff --git a/log-parser.sh b/log-parser.sh index 24aee09..4c53bf7 100755 --- a/log-parser.sh +++ b/log-parser.sh @@ -23,6 +23,8 @@ while true; do if [[ ! -f "$jcfile" ]]; then echo "$check" > "$jcfile" + elif [[ "$check" == "" ]]; then + : elif [[ ! "$check" == $(cat $jcfile) ]]; then echo "$check" > "$jcfile" datum=$(date +"[%d.%m.%Y %H:%M] ")