X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=cleanup.go;h=06e6223195262c0c44be59ce924d4e89e2c0c0b9;hb=0030b3e73152bf9d9ad3e435fa42e607c7865321;hp=dff0ee0a64fb217bbe03a9bc465388fbd187c147;hpb=368922086630cdcf1980d372006eb4bf6b459d5a;p=goredo.git diff --git a/cleanup.go b/cleanup.go index dff0ee0..06e6223 100644 --- a/cleanup.go +++ b/cleanup.go @@ -1,6 +1,6 @@ /* goredo -- djb's redo implementation on pure Go -Copyright (C) 2020-2021 Sergey Matveev +Copyright (C) 2020-2022 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -66,7 +66,7 @@ func redoDirClean(root, what string) error { switch what { case CleanupLog: if strings.HasSuffix(fi.Name(), LogSuffix) || - strings.HasSuffix(fi.Name(), LogSuffix+DepSuffix) { + strings.HasSuffix(fi.Name(), LogRecSuffix) { fmt.Println(pth) if !*DryRun { if err = os.Remove(pth); err != nil {