mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-08 13:09:17 +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))
|
LOG.warn('{} ignored, does not exist'.format(key))
|
||||||
continue
|
continue
|
||||||
k = key
|
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:
|
if o.debug:
|
||||||
LOG.dbg('removing {}'.format(key))
|
LOG.dbg('removing {}'.format(key))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user