Fix linking skipped when only one dst existing.

This commit is contained in:
leafee98 2025-09-21 20:51:20 +08:00
parent f425fc9ccc
commit 4cf9ab1ea1

View file

@ -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))