Merge pull request #477 from rmindel/feature/fix-gsd-tools-windows
fix: normalize Windows backslashes in gsd-tools path prefix
This commit is contained in:
@@ -1063,7 +1063,7 @@ function configureOpencodePermissions() {
|
|||||||
const defaultConfigDir = path.join(os.homedir(), '.config', 'opencode');
|
const defaultConfigDir = path.join(os.homedir(), '.config', 'opencode');
|
||||||
const gsdPath = opencodeConfigDir === defaultConfigDir
|
const gsdPath = opencodeConfigDir === defaultConfigDir
|
||||||
? '~/.config/opencode/get-shit-done/*'
|
? '~/.config/opencode/get-shit-done/*'
|
||||||
: `${opencodeConfigDir}/get-shit-done/*`;
|
: `${opencodeConfigDir.replace(/\\/g, '/')}/get-shit-done/*`;
|
||||||
|
|
||||||
let modified = false;
|
let modified = false;
|
||||||
|
|
||||||
@@ -1150,7 +1150,7 @@ function install(isGlobal, runtime = 'claude') {
|
|||||||
// For global installs: use full path
|
// For global installs: use full path
|
||||||
// For local installs: use relative
|
// For local installs: use relative
|
||||||
const pathPrefix = isGlobal
|
const pathPrefix = isGlobal
|
||||||
? `${targetDir}/`
|
? `${targetDir.replace(/\\/g, '/')}/`
|
||||||
: `./${dirName}/`;
|
: `./${dirName}/`;
|
||||||
|
|
||||||
let runtimeLabel = 'Claude Code';
|
let runtimeLabel = 'Claude Code';
|
||||||
|
|||||||
Reference in New Issue
Block a user