X-Git-Url: https://git.sthu.org/?p=shutils.git;a=blobdiff_plain;f=nagios%2Fplugins%2Fcheck_rdns;h=90a8ce6abe9e2dc6db6a4288618fa34f4d643f59;hp=9649dd278faae9e8cb003c92839811876ff74918;hb=e4d5d261c8749c66ab973de1342dd09fd106d5f2;hpb=68e246948776c9bca12913cd3cf648fc783191f9 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