Remove maps dir before map generation
gitea/docker-discover/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2021-11-22 16:00:37 +01:00
parent 60282f0dd6
commit 4c3fe3abe5
1 changed files with 3 additions and 2 deletions

View File

@ -283,7 +283,8 @@ async function updateProxy() {
}
let mapDir = `${tmpDir}/maps`;
if (!await fs.pathExists(mapDir))
if (await fs.pathExists(mapDir))
await fs.remove(mapDir, {recursive: true});
await fs.mkdir(mapDir);
for (const file in files) {