fix: normalize ~ in path config
This commit is contained in:
1 parent
9a88c94b30
commit
328d47f1df
3 files changed
+66
-5
No files matched your search
+1
-1
@@ -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