From c5fbd051f679a5154fcefa1159114bb8d3f4d06c Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Sun, 15 Feb 2026 11:01:00 -0600 Subject: [PATCH] fix(installer): quote config dir in hook templates for local installs (#605) Local installs returned unquoted dir name, producing invalid JS in hook files. Co-Authored-By: Claude Opus 4.6 --- bin/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install.js b/bin/install.js index 80c3969eb..bf99b5952 100755 --- a/bin/install.js +++ b/bin/install.js @@ -55,7 +55,7 @@ function getDirName(runtime) { function getConfigDirFromHome(runtime, isGlobal) { if (!isGlobal) { // Local installs use the same dir name pattern - return getDirName(runtime); + return `'${getDirName(runtime)}'`; } // Global installs - OpenCode uses XDG path structure if (runtime === 'opencode') {