mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-24 08:21:39 +00:00
fix(cli): preserve posix default git dir
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user