diff options
author | Mark Andrews <marka@isc.org> | 2018-09-17 15:37:22 +1000 |
---|---|---|
committer | Mark Andrews <marka@isc.org> | 2018-09-17 15:37:22 +1000 |
commit | e468ff7a038e3738280b1f3bc0cfb966f6916e57 (patch) | |
tree | 941e18afe148dbdd35bd50e88c5972555a5b96ae | |
parent | d5118758de6e4add37313c056a18de9857f20b06 (diff) | |
download | isc-dhcp-e468ff7a038e3738280b1f3bc0cfb966f6916e57.tar.gz |
correctly look for --repo_host= and --repo_path=
-rw-r--r-- | util/bind.sh | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/util/bind.sh b/util/bind.sh index b813044a..39f9337c 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=<host>] [--repo_path=<project path>] [<branch>|<version>]" >&2 + *) echo "usage: sh bind.sh [--repo_host=<host>] [--repo_path=<project path>] ( <branch>|<version> )" >&2 exit 1 ;; esac |