mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 14:29:17 +00:00
link already exists is not an error (for #154)
This commit is contained in:
@@ -211,8 +211,10 @@ class Installer:
|
|||||||
overwrite = not self.safe
|
overwrite = not self.safe
|
||||||
if os.path.lexists(dst):
|
if os.path.lexists(dst):
|
||||||
if os.path.realpath(dst) == os.path.realpath(src):
|
if os.path.realpath(dst) == os.path.realpath(src):
|
||||||
err = 'ignoring "{}", link exists'.format(dst)
|
msg = 'ignoring "{}", link already exists'.format(dst)
|
||||||
return False, err
|
if self.debug:
|
||||||
|
self.log.dbg(msg)
|
||||||
|
return True, None
|
||||||
if self.dry:
|
if self.dry:
|
||||||
self.log.dry('would remove {} and link to {}'.format(dst, src))
|
self.log.dry('would remove {} and link to {}'.format(dst, src))
|
||||||
return True, None
|
return True, None
|
||||||
|
|||||||
Reference in New Issue
Block a user