#!/usr/bin/env bash set -o errexit set -o nounset set -o pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck source=00_env.sh source "$SCRIPT_DIR/00_env.sh" RUN_STEPS=false usage() { cat <<'USAGE' Usage: ./veritas_extend_runbook.sh --sg --dg --vol --mount --size <+SIZE> --disks "disk1 disk2" [--execute] [--run] Options: --run Run each step in the recommended order. Without --run, only print the runbook. --execute Pass --execute to change steps. Dry-run remains the default. USAGE usage_common } args=() while (( "$#" > 0 )); do case "$1" in --run) RUN_STEPS=true shift ;; --help|-h) usage exit 0 ;; *) args+=("$1") shift ;; esac done parse_common_args "${args[@]}" cat <