1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 03:54:47 +00:00

do not remove if uses any kind of link

This commit is contained in:
deadc0de6
2019-06-15 18:47:01 +02:00
parent 2f7f51f9fc
commit 1bcce68d06

View File

@@ -457,6 +457,12 @@ def cmd_remove(o):
LOG.warn('{} ignored, does not exist'.format(key))
continue
k = key
# ignore if uses any type of link
if dotfile.link != LinkTypes.NOLINK:
LOG.warn('dotfile uses link, remove manually')
continue
if o.debug:
LOG.dbg('removing {}'.format(key))