From: Sergey Matveev Date: Tue, 1 Mar 2022 19:48:25 +0000 (+0300) Subject: Temporary targets can be $3 X-Git-Tag: v1.24.0^0 X-Git-Url: http://www.git.cypherpunks.ru/?p=goredo.git;a=commitdiff_plain;h=0d0e69d21056fe2c199beb7e7ce82572ae688825 Temporary targets can be $3 --- diff --git a/cleanup.go b/cleanup.go index 06e6223..e00e3ff 100644 --- a/cleanup.go +++ b/cleanup.go @@ -122,6 +122,12 @@ func cleanupWalker(root, what string) error { } else { err = redoDirClean(pth, what) } + } else if (what == CleanupTmp || what == CleanupFull) && + strings.HasPrefix(fi.Name(), TmpPrefix) { + fmt.Println(pthRel) + if !*DryRun { + err = os.RemoveAll(pth) + } } else { err = cleanupWalker(pth, what) } diff --git a/doc/news.texi b/doc/news.texi index 088cc03..cce9c20 100644 --- a/doc/news.texi +++ b/doc/news.texi @@ -2,6 +2,14 @@ @cindex news @unnumbered News +@anchor{Release 1_24_0} +@section Release 1.24.0 +@itemize +@item + @command{redo-cleanup tmp} also removes temporarily (@code{$3}) + created directories. +@end itemize + @anchor{Release 1_23_0} @section Release 1.23.0 @itemize