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:
parent
e6a8c2bea5
commit
073bec9e8c
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user