From 16ecd7a1d4dbb3bdf9a35ad2ff3f8034fbc127f7 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Tue, 19 Oct 2021 22:17:50 +0200 Subject: [PATCH] clean tmp --- dotdrop/installer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotdrop/installer.py b/dotdrop/installer.py index 466d2e7..37e99f4 100644 --- a/dotdrop/installer.py +++ b/dotdrop/installer.py @@ -640,12 +640,14 @@ class Installer: needs to be installed """ # check file content + tmp = None if content: tmp = utils.write_to_tmpfile(content) src = tmp ret = utils.fastdiff(src, dst) if ret: self.log.dbg('content differ') + utils.removepath(tmp) return ret def _show_diff_before_write(self, src, dst, content=None):