From 2ffc92a3687fd8e9ed939c59c6721d08ec7e6fa1 Mon Sep 17 00:00:00 2001 From: Shane McLaughlin Date: Wed, 4 Aug 2021 13:39:18 -0500 Subject: [PATCH] fix: allow 6 weeks before deleting CLIs (#286) there's something wrong with line 288. This gives us more time to figure that out cf: https://github.com/forcedotcom/cli/issues/1104 --- src/commands/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/update.ts b/src/commands/update.ts index 2131d6ea..f61cf6b8 100644 --- a/src/commands/update.ts +++ b/src/commands/update.ts @@ -287,7 +287,7 @@ export default class UpdateCommand extends Command { const promises = files.map(async f => { if (['bin', 'current', this.config.version].includes(path.basename(f.path))) return const mtime = f.stat.mtime - mtime.setHours(mtime.getHours() + (14 * 24)) + mtime.setHours(mtime.getHours() + (42 * 24)) if (mtime < new Date()) { await fs.remove(f.path) }