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
|
# 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user