check_rdns: minor update
authorStefan Huber <shuber@sthu.org>
Thu, 7 Nov 2013 20:57:48 +0000 (21:57 +0100)
committerStefan Huber <shuber@sthu.org>
Thu, 7 Nov 2013 20:57:48 +0000 (21:57 +0100)
nagios/plugins/check_rdns

index 9649dd278faae9e8cb003c92839811876ff74918..90a8ce6abe9e2dc6db6a4288618fa34f4d643f59 100755 (executable)
@@ -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