Skip to content

Commit

Permalink
fix: allow 6 weeks before deleting CLIs (#286)
Browse files Browse the repository at this point in the history
there's something wrong with line 288.  This gives us more time to figure that out
cf: forcedotcom/cli#1104
  • Loading branch information
mshanemc authored Aug 4, 2021
1 parent 0dd30ad commit 2ffc92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 2ffc92a

Please sign in to comment.