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:
parent
77407f9d63
commit
061bd2d799
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user