Apparently Dash is not Bash, so -v does not work

This commit is contained in:
RincewindsHat 2021-12-20 00:08:24 +01:00
parent 5a81bd813e
commit c1bf69c3a6

View file

@ -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