summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_log.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts/check_log.sh')
-rwxr-xr-xplugins-scripts/check_log.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_log.sh b/plugins-scripts/check_log.sh
index d71f420e..fdb57416 100755
--- a/plugins-scripts/check_log.sh
+++ b/plugins-scripts/check_log.sh
@@ -212,7 +212,7 @@ elif [ ! -r "$logfile" ] ; then
212 exit "$STATE_UNKNOWN" 212 exit "$STATE_UNKNOWN"
213fi 213fi
214# If no oldlog was given this can not work properly, abort then 214# If no oldlog was given this can not work properly, abort then
215if [ ! -v oldlog ]; then 215if [ -z "$oldlog" ]; then
216 echo "Oldlog parameter is needed" 216 echo "Oldlog parameter is needed"
217 exit $STATE_UNKNOWN 217 exit $STATE_UNKNOWN
218fi 218fi