mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-08 05:39:15 +00:00
add safe
This commit is contained in:
@@ -672,6 +672,9 @@ class Installer:
|
|||||||
if self.dry:
|
if self.dry:
|
||||||
self.log.dry(f'would remove {path}')
|
self.log.dry(f'would remove {path}')
|
||||||
continue
|
continue
|
||||||
|
if self.safe:
|
||||||
|
if not self.log.ask(f'remove unmanaged \"{path}\"'):
|
||||||
|
return
|
||||||
self.log.dbg(f'removing not managed: {path}')
|
self.log.dbg(f'removing not managed: {path}')
|
||||||
removepath(path, logger=self.log)
|
removepath(path, logger=self.log)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user