File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,11 @@ fatal() { error "$@"; exit 1; }
2626try () { " $@ " || fatal " '$@ ' failed" ; }
2727
2828PY_VER=2
29- while getopts :p: opt " $@ " ; do
29+ API_VER=3
30+ while getopts :p:a: opt " $@ " ; do
3031 case $opt in
3132 p) PY_VER=$OPTARG ;;
33+ a) API_VER=$OPTARG ;;
3234 :) fatal " Option -${OPTARG} requires a value" ;;
3335 ' ?' ) fatal " Unknown option: -${OPTARG} " ;;
3436 * ) fatal " Internal error: opt=${opt} " ;;
@@ -41,6 +43,11 @@ case $PY_VER in
4143 * ) fatal " Wrong python version (2 or 3)" ;;
4244esac
4345
46+ case $API_VER in
47+ 3|4) ;;
48+ * ) fatal " Wrong API version (3 or 4)" ;;
49+ esac
50+
4451for req in \
4552 curl \
4653 docker \
@@ -130,6 +137,7 @@ timeout = 10
130137[local]
131138url = http://localhost:8080
132139private_token = $TOKEN
140+ api_version = $API_VER
133141EOF
134142
135143log " Config file content ($CONFIG ):"
You can’t perform that action at this time.
0 commit comments