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 382bd72..6113123 100755 --- a/plugins-scripts/check_log.sh +++ b/plugins-scripts/check_log.sh | |||
@@ -223,6 +223,7 @@ fi | |||
223 | # The temporary file that the script should use while | 223 | # The temporary file that the script should use while |
224 | # processing the log file. | 224 | # processing the log file. |
225 | if [ -x /bin/mktemp ]; then | 225 | if [ -x /bin/mktemp ]; then |
226 | |||
226 | tempdiff=$(/bin/mktemp /tmp/check_log.XXXXXXXXXX) | 227 | tempdiff=$(/bin/mktemp /tmp/check_log.XXXXXXXXXX) |
227 | else | 228 | else |
228 | tempdiff=$(/bin/date '+%H%M%S') | 229 | tempdiff=$(/bin/date '+%H%M%S') |
@@ -233,6 +234,7 @@ fi | |||
233 | 234 | ||
234 | diff "$logfile" "$oldlog" | grep -v "^>" > "$tempdiff" | 235 | diff "$logfile" "$oldlog" | grep -v "^>" > "$tempdiff" |
235 | 236 | ||
237 | |||
236 | if [ $ALL ]; then | 238 | if [ $ALL ]; then |
237 | # Get the last matching entry in the diff file | 239 | # Get the last matching entry in the diff file |
238 | entry=$($GREP "$query" "$tempdiff") | 240 | entry=$($GREP "$query" "$tempdiff") |