test-to-dev #1478

Merged
alexandre merged 53 commits from test-to-dev into dev 2023-04-24 06:54:33 +00:00
1 changed files with 5 additions and 8 deletions
Showing only changes of commit 8763dc32c4 - Show all commits

View File

@ -90,15 +90,12 @@ module.exports = Self => {
scrubDirCreated = true;
}
const dstFile = path.join(scrubSizeDir, image);
if (!dryRun)
await fs.rename(srcFile, dstFile);
if (!dryRun) await fs.rename(srcFile, dstFile);
} else {
if (!dryRun) {
try {
await fs.unlink(srcFile);
} catch (err) {
console.error(err);
}
try {
if (!dryRun) await fs.unlink(srcFile);
} catch (err) {
console.error(err);
}
}