X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=cleanup.go;h=dff0ee0a64fb217bbe03a9bc465388fbd187c147;hb=368922086630cdcf1980d372006eb4bf6b459d5a;hp=52f149602a8af22e11fca86d146876e41510fcfb;hpb=9c7d2ee7e4847ba9194f2e96ec460b8c024e551f;p=goredo.git diff --git a/cleanup.go b/cleanup.go index 52f1496..dff0ee0 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(), LogSuffix+DepSuffix) { fmt.Println(pth) if !*DryRun { if err = os.Remove(pth); err != nil {