Commit e468ff7a authored by Mark Andrews's avatar Mark Andrews

correctly look for --repo_host= and --repo_path=

parent d5118758
...@@ -34,16 +34,22 @@ binddir=$topdir/bind ...@@ -34,16 +34,22 @@ binddir=$topdir/bind
repo_host="gitlab.isc.org" repo_host="gitlab.isc.org"
repo_path="isc-projects/bind9" repo_path="isc-projects/bind9"
case "${1:-}" in while :
--repo_host=*) do
repo_host="${1}"; case "${1:-}" in
shift --repo_host=*)
;; repo_host="${1}";
--repo_path=*) shift
repo_path="${1}"; continue
shift ;;
;; --repo_path=*)
esac repo_path="${1}";
shift
continue
;;
esac
break;
done
case $# in case $# in
1) 1)
...@@ -104,7 +110,7 @@ case $# in ...@@ -104,7 +110,7 @@ case $# in
;; ;;
esac 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 exit 1
;; ;;
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment