From 61033459989e53e65b91679a7befd509380b8874 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 20 Sep 2024 09:28:39 +0200 Subject: [PATCH] Don't claim we remove workdir with --no-cleanup --- vcs-diff-lint | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vcs-diff-lint b/vcs-diff-lint index c304651..07b0bcd 100755 --- a/vcs-diff-lint +++ b/vcs-diff-lint @@ -432,9 +432,10 @@ class _Worker: # pylint: disable=too-few-public-methods sys.exit(exit_status) - finally: - log.debug("removing workdir %s", self.workdir) + log.debug("%s workdir %s", + "keeping" if self.options.no_cleanup else "removing", + self.workdir) if not self.options.no_cleanup: shutil.rmtree(self.workdir)