aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-04 16:44:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-04 16:44:30 +0200
commita039dab5e4438328bcba5a2e4ab4a43b5e70c3ea (patch)
tree3b9e693d64b48052349019d112456fc2daeffc01
parent732cc762d416146c515acf90c5e9641772ab2850 (diff)
Don't try to clean temporary directory if it does not exist
-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 */,