Fix linking skipped when only one dst existing.
This commit is contained in:
parent
f425fc9ccc
commit
4cf9ab1ea1
|
@ -70,7 +70,7 @@ def make_link(links: List[Link], dry_run=False, overwrite=False):
|
||||||
if os.path.exists(link.dst):
|
if os.path.exists(link.dst):
|
||||||
if not overwrite:
|
if not overwrite:
|
||||||
logger.info('dst exists, skipping: {}'.format(link.dst))
|
logger.info('dst exists, skipping: {}'.format(link.dst))
|
||||||
return
|
continue
|
||||||
|
|
||||||
if os.path.exists(link.dst):
|
if os.path.exists(link.dst):
|
||||||
logger.warning('dst exists, removing: {}'.format(link.dst))
|
logger.warning('dst exists, removing: {}'.format(link.dst))
|
||||||
|
|
Loading…
Reference in a new issue