mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Apparently Dash is not Bash, so -v does not work
This commit is contained in:
parent
5a81bd813e
commit
c1bf69c3a6
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ elif [ ! -r "$logfile" ] ; then
|
|||
exit "$STATE_UNKNOWN"
|
||||
fi
|
||||
# If no oldlog was given this can not work properly, abort then
|
||||
if [ ! -v oldlog ]; then
|
||||
if [ -z "$oldlog" ]; then
|
||||
echo "Oldlog parameter is needed"
|
||||
exit $STATE_UNKNOWN
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue