From 61444179b91fb3deb63236ac1ce86df4d0659a9c Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 18 Oct 2013 14:55:18 +0200 Subject: [PATCH] streamlined code --- bash/sddns.sh | 35 +++++++++-------------------------- 1 file changed, 9 insertions(+), 26 deletions(-) diff --git a/bash/sddns.sh b/bash/sddns.sh index 4050a7c..c5cc56d 100755 --- a/bash/sddns.sh +++ b/bash/sddns.sh @@ -117,34 +117,17 @@ fi # parse arguments while getopts "z:p:u:t:i:Dhd46" OPT; do case ${OPT} in - p) - PASS=${OPTARG} - ;; - u) - USER=${OPTARG} - ;; - t) - TTL=${OPTARG} - ;; - 4) - VER=4 - ;; - 6) - VER=6 - ;; - i) - IF=${OPTARG} - ;; - D) - DAEMON=1 - ;; - d) - DEBUG=${OPTARG:-5} - ;; + p) PASS=${OPTARG} ;; + u) USER=${OPTARG} ;; + t) TTL=${OPTARG} ;; + 4) VER=4 ;; + 6) VER=6 ;; + i) IF=${OPTARG} ;; + D) DAEMON=1 ;; + d) DEBUG=${OPTARG:-5} ;; h) usage - exit 0 - ;; + exit 0 ;; *) usage exit 1