ignore this stupid err
All checks were successful
Deploy & Publish Image / deploy (ubuntu-latest, 2.44.0) (push) Successful in 4m24s
All checks were successful
Deploy & Publish Image / deploy (ubuntu-latest, 2.44.0) (push) Successful in 4m24s
Took 16 minutes
This commit is contained in:
@ -35,7 +35,9 @@ const getDocsDirectory = async (): Promise<string> => {
|
|||||||
|
|
||||||
// Pull the latest changes from the repo if we don't have it
|
// Pull the latest changes from the repo if we don't have it
|
||||||
if (!fs.existsSync(cacheDir) || fs.readdirSync(cacheDir).length < 1) {
|
if (!fs.existsSync(cacheDir) || fs.readdirSync(cacheDir).length < 1) {
|
||||||
await simpleGit().clone(DOCS_DIR, cacheDir, { "--depth": 1 });
|
try {
|
||||||
|
await simpleGit().clone(DOCS_DIR, cacheDir, { "--depth": 1 });
|
||||||
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
return cacheDir;
|
return cacheDir;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user