From 1bcce68d06abe3a1d91cfd595b645e37b5b8975e Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 15 Jun 2019 18:47:01 +0200 Subject: [PATCH] do not remove if uses any kind of link --- dotdrop/dotdrop.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index 77ff1df..d807b6f 100644 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -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))