fix: update oauth flag handling to support shorthand option
This commit is contained in:
4
run.sh
4
run.sh
@@ -8,7 +8,7 @@ CONTAINER_ARGS=()
|
|||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--oauth)
|
-o|--oauth)
|
||||||
# OAuth support
|
# OAuth support
|
||||||
case "$2" in
|
case "$2" in
|
||||||
blob)
|
blob)
|
||||||
@@ -28,7 +28,7 @@ while [[ $# -gt 0 ]]; do
|
|||||||
CONTAINER_ARGS+=("--oauth")
|
CONTAINER_ARGS+=("--oauth")
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
--ssl|--no-caddy)
|
--ssl|-s|--no-caddy|-n)
|
||||||
CONTAINER_ARGS+=("$1")
|
CONTAINER_ARGS+=("$1")
|
||||||
EXPOSED_PORTS=("-p" "10000:10000" "-p" "10001:10001" "-p" "10002:10002")
|
EXPOSED_PORTS=("-p" "10000:10000" "-p" "10001:10001" "-p" "10002:10002")
|
||||||
shift
|
shift
|
||||||
|
|||||||
Reference in New Issue
Block a user