From 94d9c0603dcc077e92c3417eb84ebb70e7d6bfae Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 31 Mar 2017 14:02:11 +0200 Subject: [PATCH] diff even when --force is used --- dotdrop/installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotdrop/installer.py b/dotdrop/installer.py index e3eeaca..658cb53 100644 --- a/dotdrop/installer.py +++ b/dotdrop/installer.py @@ -79,10 +79,10 @@ class Installer: if self.dry: self.log.dry('would install %s' % (dst)) return 0 - if os.path.exists(dst) and self.safe: + if os.path.exists(dst): if self.diff and self._fake_diff(dst, content): return 1 - if not self.log.ask('Overwrite \"%s\"' % (dst)): + if self.safe and not self.log.ask('Overwrite \"%s\"' % (dst)): self.log.warn('ignoring \"%s\", already present' % (dst)) return 1 if self.backup and os.path.exists(dst):