fix: prevent multiple --oauth flag usage in run script
This commit is contained in:
4
run.sh
4
run.sh
@@ -6,6 +6,10 @@ OAUTH_ENABLED=""
|
|||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--oauth)
|
--oauth)
|
||||||
|
if [[ -n "$OAUTH_ENABLED" ]]; then
|
||||||
|
echo "Error: --oauth flag specified multiple times." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
OAUTH_ENABLED=true
|
OAUTH_ENABLED=true
|
||||||
EXPOSED_PORTS=("-p" "443:10000" "-p" "10001:10001" "-p" "10002:10002")
|
EXPOSED_PORTS=("-p" "443:10000" "-p" "10001:10001" "-p" "10002:10002")
|
||||||
shift
|
shift
|
||||||
|
|||||||
Reference in New Issue
Block a user