[cli] Error out if no overlay installs found

This commit is contained in:
derrod 2022-01-10 16:28:42 +01:00
parent 66a30d6b2a
commit cf95da395c

View file

@ -2123,6 +2123,9 @@ class LegendaryCLI:
args.path = igame.install_path
else:
available_installs = self.core.search_overlay_installs(prefix)
if not available_installs:
logger.error('No EOS overlay installs found!')
return
args.path = available_installs[0]
if not self.core.is_overlay_install(args.path):