From: Mark Andrews Date: Mon, 17 Sep 2018 05:37:22 +0000 (+1000) Subject: correctly look for --repo_host= and --repo_path= X-Git-Tag: v4_4_2b1~33 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e468ff7a038e3738280b1f3bc0cfb966f6916e57;p=thirdparty%2Fdhcp.git correctly look for --repo_host= and --repo_path= --- diff --git a/util/bind.sh b/util/bind.sh index b813044af..39f9337c8 100644 --- a/util/bind.sh +++ b/util/bind.sh @@ -34,16 +34,22 @@ binddir=$topdir/bind repo_host="gitlab.isc.org" repo_path="isc-projects/bind9" -case "${1:-}" in ---repo_host=*) - repo_host="${1}"; - shift - ;; ---repo_path=*) - repo_path="${1}"; - shift - ;; -esac +while : +do + case "${1:-}" in + --repo_host=*) + repo_host="${1}"; + shift + continue + ;; + --repo_path=*) + repo_path="${1}"; + shift + continue + ;; + esac + break; +done case $# in 1) @@ -104,7 +110,7 @@ case $# in ;; esac ;; - *) echo "usage: sh bind.sh [--repo_host=] [--repo_path=] [|]" >&2 + *) echo "usage: sh bind.sh [--repo_host=] [--repo_path=] ( | )" >&2 exit 1 ;; esac