From: Adam D. Barratt Date: Sat, 12 Oct 2019 18:50:13 +0000 (+0100) Subject: dsa-check-config: fix typo in log check for "OK" statuses X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-nagios.git;a=commitdiff_plain;h=d15470c7d8969c2be13b330e3f56a061caad5b31 dsa-check-config: fix typo in log check for "OK" statuses It's mostly harmless, but let's fix it for consistency Signed-off-by: Adam D. Barratt --- diff --git a/dsa-nagios-checks/checks/dsa-check-config b/dsa-nagios-checks/checks/dsa-check-config index 2772994..7ce992e 100755 --- a/dsa-nagios-checks/checks/dsa-check-config +++ b/dsa-nagios-checks/checks/dsa-check-config @@ -9,7 +9,7 @@ set -e err=0 log() { - if [ "$0" = "ok" ] && [ "$err" = 0 ]; then + if [ "$1" = "ok" ] && [ "$err" = 0 ]; then err=0 elif [ "$1" = "warn" ] && [ "$err" -lt 1 ]; then err=1 diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index dcde72c..e911a36 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -7,6 +7,7 @@ dsa-nagios-checks (119) UNRELEASED; urgency=medium [ Adam D. Barratt ] * dsa-check-soas: fix variable scoping * Add check_clamav_signatures. + * dsa-check-config: fix typo in log check for "OK" statuses. [ Julien Cristau ] * port dsa-check-statusfile and dsa-check-memory to python3