diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-12-20 00:08:24 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-12-20 00:08:24 +0100 |
commit | c1bf69c3a6a52c714e27107219e402bbecd7c000 (patch) | |
tree | 03138b3e24de15ec8f3bb77b334b1a2fe506bc36 /plugins-scripts | |
parent | 5a81bd813ecae7c6492e4eac001331973d9594b3 (diff) | |
download | monitoring-plugins-c1bf69c3a6a52c714e27107219e402bbecd7c000.tar.gz |
Apparently Dash is not Bash, so -v does not work
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_log.sh | 2 |
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" |
213 | fi | 213 | fi |
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 |
215 | if [ ! -v oldlog ]; then | 215 | if [ -z "$oldlog" ]; then |
216 | echo "Oldlog parameter is needed" | 216 | echo "Oldlog parameter is needed" |
217 | exit $STATE_UNKNOWN | 217 | exit $STATE_UNKNOWN |
218 | fi | 218 | fi |