summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2021-12-19 23:08:24 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2021-12-19 23:08:24 (GMT)
commitc1bf69c3a6a52c714e27107219e402bbecd7c000 (patch)
tree03138b3e24de15ec8f3bb77b334b1a2fe506bc36
parent5a81bd813ecae7c6492e4eac001331973d9594b3 (diff)
downloadmonitoring-plugins-c1bf69c.tar.gz
Apparently Dash is not Bash, so -v does not workrefs/pull/1732/head
-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 d71f420..fdb5741 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