diff options
Diffstat (limited to 'plugins-scripts/check_log.sh')
-rwxr-xr-x | plugins-scripts/check_log.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins-scripts/check_log.sh b/plugins-scripts/check_log.sh index 382bd72c..61131236 100755 --- a/plugins-scripts/check_log.sh +++ b/plugins-scripts/check_log.sh @@ -223,6 +223,7 @@ fi # The temporary file that the script should use while # processing the log file. if [ -x /bin/mktemp ]; then + tempdiff=$(/bin/mktemp /tmp/check_log.XXXXXXXXXX) else tempdiff=$(/bin/date '+%H%M%S') @@ -233,6 +234,7 @@ fi diff "$logfile" "$oldlog" | grep -v "^>" > "$tempdiff" + if [ $ALL ]; then # Get the last matching entry in the diff file entry=$($GREP "$query" "$tempdiff") |