mirror of
https://github.com/restic/restic.git
synced 2025-04-28 11:20:48 +00:00
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)
|
cleanup := prepareCheckCache(opts, &gopts)
|
||||||
defer cleanup()
|
AddCleanupHandler(func() error {
|
||||||
|
cleanup()
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
|
||||||
repo, err := OpenRepository(gopts)
|
repo, err := OpenRepository(gopts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user