X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=cleanup.go;h=8c757aeebcf4c58d2b1e96ba5e93fa10e0c4b271;hb=dec78abffe14ae2e7c3383c215803c3792788d3e;hp=52f149602a8af22e11fca86d146876e41510fcfb;hpb=2e85fe511f4f0410e4b8a1dcdb127396b7f3f7c0;p=goredo.git diff --git a/cleanup.go b/cleanup.go index 52f1496..8c757ae 100644 --- a/cleanup.go +++ b/cleanup.go @@ -65,7 +65,8 @@ func redoDirClean(root, what string) error { pth = cwdMustRel(root, fi.Name()) switch what { case CleanupLog: - if strings.HasSuffix(fi.Name(), LogSuffix) { + if strings.HasSuffix(fi.Name(), LogSuffix) || + strings.HasSuffix(fi.Name(), LogRecSuffix) { fmt.Println(pth) if !*DryRun { if err = os.Remove(pth); err != nil {