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 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson
2026-02-15 11:01:00 -06:00
parent a5caf9194b
commit c5fbd051f6

View File

@@ -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') {