We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81eef3a commit 3ed3c63Copy full SHA for 3ed3c63
cmd/copy-content/main.go
@@ -31,6 +31,10 @@ func main() {
31
*catalogSource: *catalogDestination,
32
*cacheSource: *cacheDestination,
33
} {
34
+ if err := os.RemoveAll(to); err != nil {
35
+ fmt.Printf("failed to remove %s: %s", to, err)
36
+ os.Exit(1)
37
+ }
38
if err := copy.Copy(from, to); err != nil {
39
fmt.Printf("failed to copy %s to %s: %s\n", from, to, err)
40
os.Exit(1)
0 commit comments