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'.
This commit is contained in:
chahinebrini 2026-05-30 10:03:11 +02:00
parent 77407f9d63
commit 061bd2d799

View File

@ -226,8 +226,11 @@ run_quiet() {
# Flag Parsing # Flag Parsing
# ═══════════════════════════════════════════════════════════════════════════ # ═══════════════════════════════════════════════════════════════════════════
COMMAND="${1:-all}" COMMAND="all"
shift || true if [[ $# -gt 0 && "$1" != -* ]]; then
COMMAND="$1"
shift
fi
DO_MDM=false DO_MDM=false
DO_TF=false DO_TF=false