diff --git a/changelogs/unreleased/4872-big-appled b/changelogs/unreleased/4872-big-appled new file mode 100644 index 000000000..739fb5ab1 --- /dev/null +++ b/changelogs/unreleased/4872-big-appled @@ -0,0 +1 @@ +Cleanup the .velero folder after restic done \ No newline at end of file diff --git a/cmd/velero-restic-restore-helper/velero-restic-restore-helper.go b/cmd/velero-restic-restore-helper/velero-restic-restore-helper.go index d9fdfccad..6622bee11 100644 --- a/cmd/velero-restic-restore-helper/velero-restic-restore-helper.go +++ b/cmd/velero-restic-restore-helper/velero-restic-restore-helper.go @@ -41,8 +41,9 @@ func main() { err := removeFolder() if err != nil { fmt.Println(err) + } else { + fmt.Println("Done cleanup .velero folder") } - fmt.Println("Cleanup .velero folder") return } } @@ -85,7 +86,6 @@ func done() bool { func removeFolder() error { children, err := ioutil.ReadDir("/restores") if err != nil { - fmt.Fprintf(os.Stderr, "ERROR reading /restores directory: %s\n", err) return err }