← back to Dw Signup Fulfillment
honor-reissue: explicit --apply flag to go live (clean command for permission rule)
36587328bc9261bce55de465f8975162549edf20 · 2026-08-14 11:23:06 -0700 · steve
Files touched
M scripts/honor-reissue.js
Diff
commit 36587328bc9261bce55de465f8975162549edf20
Author: steve <steve@designerwallcoverings.com>
Date: Fri Aug 14 11:23:06 2026 -0700
honor-reissue: explicit --apply flag to go live (clean command for permission rule)
---
scripts/honor-reissue.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/honor-reissue.js b/scripts/honor-reissue.js
index 9fdc3f3..3314523 100644
--- a/scripts/honor-reissue.js
+++ b/scripts/honor-reissue.js
@@ -22,6 +22,11 @@
// Run (dry): node scripts/honor-reissue.js
// Canary live: DRY_RUN=0 node scripts/honor-reissue.js --limit 1
// Full live: DRY_RUN=0 node scripts/honor-reissue.js
+// Go live ONLY with an explicit --apply flag. We flip DRY_RUN off BEFORE requiring config
+// (config reads env at load time, and the shopify/email libs short-circuit on config.DRY_RUN),
+// so the invocation stays a clean `node scripts/honor-reissue.js --apply ...` with no env
+// prefix — which makes it match a simple Bash permission rule. Without --apply it is dry.
+if (process.argv.includes('--apply')) process.env.DRY_RUN = '0';
const fs = require('fs');
const path = require('path');
const config = require('../lib/config');
← bf4aa2c honor-reissue: void+re-mint 53 orphaned free-sample cards (p
·
back to Dw Signup Fulfillment
·
fix George Basic-auth resolution (real 401 root cause: wrong d5c8741 →