6c6a1b5b8e
Teach step-*.sh to re-use the same branch name if running in dry-run mode. This is useful for running the steps sequentially: if using different branch names, each 'repo start' will undo the changes created during the previous step-*.sh. Bug: 323940469 Test: croot && build/tools/finalization/step-1.sh --dry-run && build/tools/finalization/step-2.sh --dry-run Ignore-AOSP-first: VIC finalization happens outside AOSP Change-Id: I720f294f6abf5a8b276bb30f8c531fcbea749b76
8 lines
235 B
Bash
8 lines
235 B
Bash
ARGV=$(getopt --options '' --long dry-run -- "$@")
|
|
eval set -- "$ARGV"
|
|
while true; do
|
|
case "$1" in
|
|
--dry-run) repo_upload_dry_run_arg="--dry-run"; repo_branch="finalization-dry-run"; shift ;;
|
|
*) break
|
|
esac
|
|
done
|