mirror of
https://github.com/restic/restic.git
synced 2026-07-16 04:04:53 +00:00
Merge pull request #3935 from miles170/master
Only display the message if there were locks to be removed
This commit is contained in:
@@ -46,11 +46,13 @@ func runUnlock(opts UnlockOptions, gopts GlobalOptions) error {
|
||||
fn = restic.RemoveAllLocks
|
||||
}
|
||||
|
||||
err = fn(gopts.ctx, repo)
|
||||
processed, err := fn(gopts.ctx, repo)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Verbosef("successfully removed locks\n")
|
||||
if processed > 0 {
|
||||
Verbosef("successfully removed %d locks\n", processed)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user