mirror of https://github.com/openclaw/openclaw.git
fix(cli): preserve posix default git dir
This commit is contained in:
parent
7a459045de
commit
8fa91d283b
|
|
@ -121,7 +121,11 @@ export function resolveGitInstallDir(): string {
|
|||
}
|
||||
|
||||
function resolveDefaultGitDir(): string {
|
||||
return path.join(os.homedir(), "openclaw");
|
||||
const home = os.homedir();
|
||||
if (home.startsWith("/")) {
|
||||
return path.posix.join(home, "openclaw");
|
||||
}
|
||||
return path.join(home, "openclaw");
|
||||
}
|
||||
|
||||
export function resolveNodeRunner(): string {
|
||||
|
|
|
|||
Loading…
Reference in New Issue