From e4d5d261c8749c66ab973de1342dd09fd106d5f2 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 7 Nov 2013 21:57:48 +0100 Subject: [PATCH] check_rdns: minor update --- nagios/plugins/check_rdns | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nagios/plugins/check_rdns b/nagios/plugins/check_rdns index 9649dd2..90a8ce6 100755 --- a/nagios/plugins/check_rdns +++ b/nagios/plugins/check_rdns @@ -52,7 +52,7 @@ EOF } -TEMP=`getopt -o "H:a:c:hs:t:w:V" --long "help,address:,expect:,critical:,server:,timeout:,warning:,version" -n "$0" -- "$@"` +TEMP=`getopt -o "H:a:c:hs:t:w:V" --long "help,address:,expect:,critical:,server:,timeout:,warning:,version" -n "$PROGNAME" -- "$@"` eval set - "$TEMP" ADDRESS= @@ -82,7 +82,10 @@ while true; do WARNING="$2"; shift 2 ;; -c | --critical ) CRITICAL="$2"; shift 2 ;; - -- | *) + -- ) + shift + break ;; + * ) break ;; esac done -- 2.39.5