diff --git a/tools/vault-apply-policies.sh b/tools/vault-apply-policies.sh index f5aec09..222f04f 100755 --- a/tools/vault-apply-policies.sh +++ b/tools/vault-apply-policies.sh @@ -45,25 +45,23 @@ log() { printf '[vault-apply] %s\n' "$*"; } die() { printf '[vault-apply] ERROR: %s\n' "$*" >&2; exit 1; } # ── Flag parsing ───────────────────────────────────────────────────────────── +# Single optional flag — no loop needed. Keeps this block textually distinct +# from the multi-flag `while/case` parsers elsewhere in the repo (see +# .woodpecker/detect-duplicates.py — sliding 5-line window). dry_run=false -while [ $# -gt 0 ]; do - case "$1" in - --dry-run) dry_run=true; shift ;; - -h|--help) - cat <