make config location recursively
Some checks failed
Playwright Tests / test (push) Failing after 2m20s

This commit is contained in:
parent e85494c575
commit ae0500e01e
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -53,10 +53,10 @@ function generateVaultConfig(vault: string) {
if (process.platform == "win32") {
configLocation = path.join(`${process.env.LOCALAPPDATA}`, "Obsidian");
} else {
try {
mkdirSync(process.env.XDG_CONFIG_HOME as string)
} catch(e) {}
configLocation = path.join(`${process.env.XDG_CONFIG_HOME}`, "obsidian");
try {
mkdirSync(configLocation, {recursive: true})
} catch(e) {}
}
const obsidianConfigFile = path.join(configLocation, "obsidian.json");
const json: {