[Index] Fix caching issues with multiple BD themes in one repo

This commit is contained in:
Ducko 2021-05-23 21:24:12 +01:00 committed by Alyxia Sother
parent 768db5ae3f
commit bec681af2d
No known key found for this signature in database
GPG Key ID: 355968D14144B739
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ for (const parentRepo of ModuleRepos) {
const currentHash = await new Promise((res) => exec(`git rev-parse HEAD`, (err, stdout) => res(stdout.trim())));
if (currentHash !== repo[1]) rmSync(cloneDir, { recursive: true, force: true });
if (currentHash !== repo[1] && repo[1] !== '') rmSync(cloneDir, { recursive: true, force: true });
}
process.chdir(distDir); // Incase current wd is broken, in which case exec / git crashes