From 0d0e69d21056fe2c199beb7e7ce82572ae688825 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 1 Mar 2022 22:48:25 +0300 Subject: [PATCH] Temporary targets can be $3 --- cleanup.go | 6 ++++++ doc/news.texi | 8 ++++++++ 2 files changed, 14 insertions(+) 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 -- 2.44.0