Merge pull request #2062 from Molecule-AI/fix/sweep-script-env-override

fix(scripts): make sweep-cf-orphans MAX_DELETE_PCT env override actually work
This commit is contained in:
Hongming Wang 2026-04-26 06:55:14 +00:00 committed by GitHub
commit 944ddcb4e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@
set -euo pipefail
DRY_RUN=1
MAX_DELETE_PCT=50 # refuse to delete more than half the records in one run
MAX_DELETE_PCT="${MAX_DELETE_PCT:-50}" # refuse to delete more than this pct of records in one run; caller can override via env
REGION="${AWS_DEFAULT_REGION:-us-east-2}"
for arg in "$@"; do