Skip to content

Commit

Permalink
changes according to review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ning Ding <834652870@qq.com>
  • Loading branch information
big-appled committed May 9, 2022
1 parent bc15fe8 commit e09c31e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/4872-big-appled
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Cleanup the .velero folder after restic done
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit e09c31e

Please sign in to comment.