summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMark Andrews <marka@isc.org>2018-09-17 15:37:22 +1000
committerMark Andrews <marka@isc.org>2018-09-17 15:37:22 +1000
commite468ff7a038e3738280b1f3bc0cfb966f6916e57 (patch)
tree941e18afe148dbdd35bd50e88c5972555a5b96ae /util
parentd5118758de6e4add37313c056a18de9857f20b06 (diff)
downloadisc-dhcp-e468ff7a038e3738280b1f3bc0cfb966f6916e57.tar.gz
correctly look for --repo_host= and --repo_path=
Diffstat (limited to 'util')
-rw-r--r--util/bind.sh28
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