Remove maps dir before map generation
gitea/docker-discover/pipeline/head This commit looks good
Details
gitea/docker-discover/pipeline/head This commit looks good
Details
This commit is contained in:
parent
60282f0dd6
commit
4c3fe3abe5
5
index.js
5
index.js
|
@ -283,8 +283,9 @@ async function updateProxy() {
|
|||
}
|
||||
|
||||
let mapDir = `${tmpDir}/maps`;
|
||||
if (!await fs.pathExists(mapDir))
|
||||
await fs.mkdir(mapDir);
|
||||
if (await fs.pathExists(mapDir))
|
||||
await fs.remove(mapDir, {recursive: true});
|
||||
await fs.mkdir(mapDir);
|
||||
|
||||
for (const file in files) {
|
||||
files[file].sort(file == 'acl'
|
||||
|
|
Reference in New Issue