From 294e3e980a6a1ddef6b50f44f345a272d5d68791 Mon Sep 17 00:00:00 2001 From: Jonas De Date: Fri, 16 Aug 2019 18:08:42 +0200 Subject: [PATCH] Add backup print --- dotbot/plugins/link.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotbot/plugins/link.py b/dotbot/plugins/link.py index cdab143..b6888b9 100644 --- a/dotbot/plugins/link.py +++ b/dotbot/plugins/link.py @@ -173,12 +173,14 @@ class Link(dotbot.Plugin): elif force: if os.path.isdir(fullpath): if backup: + self._log.lowinfo('Backing up %s -> %s' % (fullpath, backup)) shutil.copytree(fullpath, backup) shutil.rmtree(fullpath) removed = True else: if backup: shutil.copyfile(fullpath, backup) + self._log.lowinfo('Backing up %s -> %s' % (fullpath, backup)) os.remove(fullpath) removed = True except OSError: