diff options
author | Sven Nierlein <sven@consol.de> | 2023-10-26 09:26:41 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@consol.de> | 2023-10-26 09:26:41 (GMT) |
commit | 03bde80abbda6fba2225568c3285a2ff2b5445a8 (patch) | |
tree | c617e578c982daab56a0a94fa627a3b5f7efe31b /lib/tests/test_opts2.t | |
parent | db76f6867c8e6af44eebb85fef0e5ac4e10c65c6 (diff) | |
download | monitoring-plugins-03bde80abbda6fba2225568c3285a2ff2b5445a8.tar.gz |
check_mailq: exit on empty strings and exit early
in case of $utils::PATH_TO_MAILQ beeing an empty string, the "defined" is still true
and leads to misleading error messages.
While on it, rewrite cascaded if/elsifs to more readably exit-early ifs.
Diffstat (limited to 'lib/tests/test_opts2.t')
0 files changed, 0 insertions, 0 deletions