From e468ff7a038e3738280b1f3bc0cfb966f6916e57 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 17 Sep 2018 15:37:22 +1000 Subject: [PATCH] correctly look for --repo_host= and --repo_path= --- util/bind.sh | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) 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 -- 2.47.2