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:
@@ -55,7 +55,7 @@ function getDirName(runtime) {
|
|||||||
function getConfigDirFromHome(runtime, isGlobal) {
|
function getConfigDirFromHome(runtime, isGlobal) {
|
||||||
if (!isGlobal) {
|
if (!isGlobal) {
|
||||||
// Local installs use the same dir name pattern
|
// Local installs use the same dir name pattern
|
||||||
return getDirName(runtime);
|
return `'${getDirName(runtime)}'`;
|
||||||
}
|
}
|
||||||
// Global installs - OpenCode uses XDG path structure
|
// Global installs - OpenCode uses XDG path structure
|
||||||
if (runtime === 'opencode') {
|
if (runtime === 'opencode') {
|
||||||
|
|||||||
Reference in New Issue
Block a user