From 0862cad99492a52b160de883e42f31d73ca8e25b Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Fri, 27 Feb 2026 13:43:02 +0100 Subject: [PATCH] fix: prevent multiple --oauth flag usage in run script --- run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.sh b/run.sh index f806d02..ad7e5e4 100755 --- a/run.sh +++ b/run.sh @@ -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