From 54dc164413a141d10a37cfc4ebe4288d024fb88c Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 22 Sep 2023 13:55:59 +0200 Subject: [PATCH] add safe --- dotdrop/installer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotdrop/installer.py b/dotdrop/installer.py index df1faec..3c8ed9e 100644 --- a/dotdrop/installer.py +++ b/dotdrop/installer.py @@ -672,6 +672,9 @@ class Installer: if self.dry: self.log.dry(f'would remove {path}') continue + if self.safe: + if not self.log.ask(f'remove unmanaged \"{path}\"'): + return self.log.dbg(f'removing not managed: {path}') removepath(path, logger=self.log)