mirror of
https://github.com/restic/restic.git
synced 2026-11-14 18:12:45 +00:00
check: Make sure temp cache dir is removed
This commit is contained in:
1 parent
2c964df3e2
commit
01fe719aff
1 file changed
+4
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user