[Index] Fix caching issues with multiple BD themes in one repo
This commit is contained in:
parent
768db5ae3f
commit
bec681af2d
|
@ -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())));
|
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
|
process.chdir(distDir); // Incase current wd is broken, in which case exec / git crashes
|
||||||
|
|
Loading…
Reference in New Issue