[Paths] Remove unneeded logging in cleanOldVersions

This commit is contained in:
Ducko 2022-02-14 16:08:27 +00:00
parent f4cfbb21a1
commit 9e5fb88397

View file

@ -28,12 +28,8 @@ exports.init = () => {}; // Stub as we setup on require
exports.cleanOldVersions = () => { exports.cleanOldVersions = () => {
if (!installPath) return; if (!installPath) return;
log('Paths', 'Cleaning old app dirs...');
for (const x of fs.readdirSync(installPath)) { for (const x of fs.readdirSync(installPath)) {
if (x.startsWith('app-') && !x.includes(buildInfo.version)) { if (x.startsWith('app-') && !x.includes(buildInfo.version)) fs.rmSync(join(installPath, x), { recursive: true, force: true });
log('Paths', 'Removing', x);
fs.rmSync(join(installPath, x), { recursive: true, force: true });
}
} }
}; };