[Paths] Remove unneeded logging in cleanOldVersions
This commit is contained in:
parent
f4cfbb21a1
commit
9e5fb88397
1 changed files with 1 additions and 5 deletions
|
@ -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 });
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in a new issue