mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 01:31:23 +00:00
fix: normalize ~ in path config
This commit is contained in:
@@ -57,7 +57,7 @@ export function resolveConfigPath(
|
||||
stateDir: string = resolveStateDir(env, os.homedir),
|
||||
): string {
|
||||
const override = env.CLAWDBOT_CONFIG_PATH?.trim();
|
||||
if (override) return override;
|
||||
if (override) return resolveUserPath(override);
|
||||
return path.join(stateDir, "clawdbot.json");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user