From 2ffef3df22b3e3d292cc84efed09a52b168a794c Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 29 Mar 2019 15:11:12 +0100 Subject: [PATCH] refactoring --- dotdrop/installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotdrop/installer.py b/dotdrop/installer.py index 3c9dbf8..4d371a4 100644 --- a/dotdrop/installer.py +++ b/dotdrop/installer.py @@ -319,10 +319,10 @@ class Installer: if not self._create_dirs(base): self.log.err('creating directory for {}'.format(dst)) return -1 - if self.debug: - self.log.dbg('write content to {}'.format(dst)) if not self._exec_pre_actions(actions): return -1 + if self.debug: + self.log.dbg('write content to {}'.format(dst)) # re-check in case action created the file if self.safe and not overwrite and os.path.lexists(dst): if not self.log.ask('Overwrite \"{}\"'.format(dst)):