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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user