From: Stefan Huber Date: Thu, 7 Nov 2013 20:57:48 +0000 (+0100) Subject: check_rdns: minor update X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=e4d5d261c8749c66ab973de1342dd09fd106d5f2;p=shutils.git check_rdns: minor update --- 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