forked from TrueCloudLab/restic
check: Make sure temp cache dir is removed
This commit is contained in:
parent
2c964df3e2
commit
01fe719aff
1 changed files with 4 additions and 1 deletions
|
@ -164,7 +164,10 @@ func runCheck(opts CheckOptions, gopts GlobalOptions, args []string) error {
|
|||
}
|
||||
|
||||
cleanup := prepareCheckCache(opts, &gopts)
|
||||
defer cleanup()
|
||||
AddCleanupHandler(func() error {
|
||||
cleanup()
|
||||
return nil
|
||||
})
|
||||
|
||||
repo, err := OpenRepository(gopts)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue