1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-02-04 19:16:07 +02:00

CI: Trying to fix website builder

This commit is contained in:
Laurent Cozic 2023-04-04 20:16:35 +02:00
parent e6a8c2bea5
commit 073bec9e8c

View File

@ -22,7 +22,14 @@ export function credentialDir() {
} }
export const hasCredentialFile = (filename: string) => { export const hasCredentialFile = (filename: string) => {
return pathExistsSync(`${credentialDir()}/${filename}`); let d = '';
try {
d = credentialDir();
} catch (error) {
return false;
}
return pathExistsSync(`${d}/${filename}`);
}; };
export function credentialFile(filename: string) { export function credentialFile(filename: string) {