From a039dab5e4438328bcba5a2e4ab4a43b5e70c3ea Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 May 2018 16:44:30 +0200 Subject: Don't try to clean temporary directory if it does not exist --- bpkg/utility.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bpkg/utility.cxx') 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 */, -- cgit v1.1