mirror of https://github.com/restic/restic.git
check: Make sure temp cache dir is removed
This commit is contained in:
parent
2c964df3e2
commit
01fe719aff
|
@ -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 New Issue