From 061bd2d79913f74ee289b943307f92e1e48f4300 Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Sat, 30 May 2026 10:03:11 +0200 Subject: [PATCH] fix(deploy): allow flags before subcommand (./deploy.sh --skip-pods) Treat $1 as subcommand only if it doesn't start with '-', else default to 'all'. --- apps/rebreak-native/deploy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/rebreak-native/deploy.sh b/apps/rebreak-native/deploy.sh index 5739060..3bce077 100755 --- a/apps/rebreak-native/deploy.sh +++ b/apps/rebreak-native/deploy.sh @@ -226,8 +226,11 @@ run_quiet() { # Flag Parsing # ═══════════════════════════════════════════════════════════════════════════ -COMMAND="${1:-all}" -shift || true +COMMAND="all" +if [[ $# -gt 0 && "$1" != -* ]]; then + COMMAND="$1" + shift +fi DO_MDM=false DO_TF=false