← back to Designerwallcoverings
Fix sanderson guard NODE path under launchd restricted PATH (TK-11276)
e2234e0e2ab3146afdb367d9188bbe5e075b2576 · 2026-09-05 04:10:47 -0700 · steve@designerwallcoverings.com
Launchd only sets PATH=/usr/bin:/bin so node can't be found via the fallback
'${NODE:-node}'. Pre-resolve NODE to the homebrew absolute path so the guard
actually runs instead of silently failing with 'node: command not found'.
Reversible: git revert this commit. Backup at /tmp/daily-batch.sh.bak-20260905.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Files touched
M scripts/sanderson-onboard/daily-batch.sh
Diff
commit e2234e0e2ab3146afdb367d9188bbe5e075b2576
Author: steve@designerwallcoverings.com <steve@designerwallcoverings.com>
Date: Sat Sep 5 04:10:47 2026 -0700
Fix sanderson guard NODE path under launchd restricted PATH (TK-11276)
Launchd only sets PATH=/usr/bin:/bin so node can't be found via the fallback
'${NODE:-node}'. Pre-resolve NODE to the homebrew absolute path so the guard
actually runs instead of silently failing with 'node: command not found'.
Reversible: git revert this commit. Backup at /tmp/daily-batch.sh.bak-20260905.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---
scripts/sanderson-onboard/daily-batch.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/sanderson-onboard/daily-batch.sh b/scripts/sanderson-onboard/daily-batch.sh
index 0a68512..1c97ec4 100755
--- a/scripts/sanderson-onboard/daily-batch.sh
+++ b/scripts/sanderson-onboard/daily-batch.sh
@@ -4,6 +4,9 @@
# Idempotent + resumable + cap-clean; self-terminates when all 506 are live.
set -uo pipefail
cd "$(dirname "$0")"
+# Resolve node under launchd's restricted PATH (/usr/bin:/bin only, no homebrew).
+# ${NODE:-node} falls back to "node" which launchd can't find; pre-resolve it here.
+export NODE="${NODE:-/opt/homebrew/bin/node}"
[ -f "$HOME/.dw-fixer-stop" ] && exit 0 # shared kill-switch
# 1. CREATE up to today's backlog headroom (idempotent, cap-clean, resumable)
# payloads-imgfixed.jsonl = image-clean (single-series, 0 foreign) + priced cost/0.65/0.85 (2026-09-01)
← da5be31 auto-data-snapshot: 2026-09-05T01:06:29 (2 data files) — scr
·
back to Designerwallcoverings
·
auto-data-snapshot: 2026-09-05T06:13:03 (1 data files) — dat 351b5c2 →