fix: prevent multiple --oauth flag usage in run script

This commit is contained in:
2026-02-27 13:43:02 +01:00
parent 2393a281c3
commit 0862cad994

4
run.sh
View File

@@ -6,6 +6,10 @@ OAUTH_ENABLED=""
while [[ $# -gt 0 ]]; do
case "$1" in
--oauth)
if [[ -n "$OAUTH_ENABLED" ]]; then
echo "Error: --oauth flag specified multiple times." >&2
exit 1
fi
OAUTH_ENABLED=true
EXPOSED_PORTS=("-p" "443:10000" "-p" "10001:10001" "-p" "10002:10002")
shift