From b5daff07eb80c2e61e177778eb8803ba3694d3fb Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Tue, 3 Dec 2019 23:30:53 +0100 Subject: [PATCH] replace indead of adding --- src/forget.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/forget.ts b/src/forget.ts index 0f6468a..305174d 100644 --- a/src/forget.ts +++ b/src/forget.ts @@ -18,8 +18,8 @@ export const forgetSingle = (dryRun: boolean, name: string, from: string, to: st flags.push('--dry-run') } const env = getEnvFromBackend(backend) - writer.appendLn(name + to.blue + ' : ' + 'Forgeting old snapshots… ⏳') - const cmd = exec('restic', ['forget', '--path', from, '--prune', ...flags], {env}) + writer.replaceLn(name + to.blue + ' : ' + 'Forgeting old snapshots… ⏳') + const cmd = exec('restic', ['forget', '--path', from, '--prune', ...flags], { env }) if (VERBOSE) console.log(cmd.out, cmd.err) writer.done(name + to.blue + ' : ' + 'Done ✓'.green) @@ -42,7 +42,7 @@ export const forgetLocation = (dryRun: boolean, name: string, backup: Location, } } else forgetSingle(dryRun, display, backup.from, backup.to, policy) } - } +} export const forgetAll = (dryRun: boolean, backups?: Locations) => { if (!config) throw ConfigError