aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/utility.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx
index f48d96d..693c07e 100644
--- a/bpkg/utility.cxx
+++ b/bpkg/utility.cxx
@@ -71,7 +71,7 @@ namespace bpkg
void
clean_tmp (bool ignore_error)
{
- if (!temp_dir.empty ())
+ if (!temp_dir.empty () && exists (temp_dir))
{
rm_r (temp_dir,
true /* dir_itself */,