← back to Goldleafwallpaper
Fix metalleaf-rml-refresh: restore Homebrew PATH so launchd finds node
8d1f941cda3b21e343b79745757899210d4eaa05 · 2026-07-30 15:29:23 -0700 · steve
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
M scripts/refresh-metalleaf-fleet.sh
Diff
commit 8d1f941cda3b21e343b79745757899210d4eaa05
Author: steve <steve@designerwallcoverings.com>
Date: Thu Jul 30 15:29:23 2026 -0700
Fix metalleaf-rml-refresh: restore Homebrew PATH so launchd finds node
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
scripts/refresh-metalleaf-fleet.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/refresh-metalleaf-fleet.sh b/scripts/refresh-metalleaf-fleet.sh
index f4c0552..e267d63 100755
--- a/scripts/refresh-metalleaf-fleet.sh
+++ b/scripts/refresh-metalleaf-fleet.sh
@@ -9,6 +9,10 @@
# abort the other; the exit code is non-zero if EITHER fails, so launchd logs it.
set -u
+# launchd starts jobs with a minimal PATH that lacks Homebrew, so the child
+# rebuild-and-deploy.sh scripts fail with "node: command not found". Restore it.
+export PATH="/opt/homebrew/bin:/opt/homebrew/opt/postgresql@14/bin:/usr/local/bin:/usr/bin:/bin:$PATH"
+
GOLD="$HOME/Projects/goldleafwallpaper/scripts/rebuild-and-deploy.sh"
SILVER="$HOME/Projects/silverleafwallpaper/scripts/rebuild-and-deploy.sh"
rc=0
← 3ace871 corner-nav: block javascript:/data: URIs in search preview (
·
back to Goldleafwallpaper
·
auto-save: 2026-07-31T07:25:03 (1 files) — data/products.jso c5b6918 →