[cli] Stop adding registry entries that already exist

This commit is contained in:
derrod 2021-12-31 17:06:44 +01:00
parent 9469d3cb6f
commit 08267025b4

View file

@ -2078,6 +2078,9 @@ class LegendaryCLI:
if os.path.normpath(old_path) != install_path: if os.path.normpath(old_path) != install_path:
logger.info(f'Updating overlay registry entries from "{old_path}" to "{install_path}"') logger.info(f'Updating overlay registry entries from "{old_path}" to "{install_path}"')
remove_registry_entries() remove_registry_entries()
else:
logger.info(f'Registry entries already exist. Done.')
return
add_registry_entries(install_path) add_registry_entries(install_path)
logger.info('Done.') logger.info('Done.')