File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const LIST_PAGE_SIZE = 1000
1919const EMPTY_BUCKET_POLL_INTERVAL_MS = 2000
2020const EMPTY_BUCKET_POLL_TIMEOUT_MS = 5 * 60 * 1000
2121
22- const confirmed = process . argv . includes ( '--yes' )
22+ const confirmed = process . argv . includes ( '--yes' ) && process . env . ACCEPTANCE_ALLOW_DESTRUCTIVE
2323
2424interface StorageBucket {
2525 id : string
@@ -53,7 +53,7 @@ async function main() {
5353 console . log (
5454 confirmed
5555 ? 'Mode: LIVE (--yes passed, resources will be deleted)'
56- : 'Mode: DRY RUN (pass --yes to actually delete anything)'
56+ : 'Mode: DRY RUN (pass --yes and ensure ACCEPTANCE_ALLOW_DESTRUCTIVE is set to actually delete anything)'
5757 )
5858 if ( config . rlsBucket ) {
5959 console . log ( `Preserving RLS fixture bucket: ${ config . rlsBucket } (emptied, not deleted)` )
You can’t perform that action at this time.
0 commit comments