Skip to content

Commit

Permalink
Allow single installer
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz committed Dec 6, 2023
1 parent 5c54f79 commit 189bc4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libbs/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6.8"
__version__ = "0.6.9"
9 changes: 6 additions & 3 deletions libbs/plugin_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,17 @@ def _populate_installs_from_config(self):

def install(self, interactive=True, paths_by_target=None):
self.target_install_paths.update(paths_by_target or {})
self.display_prologue()

if interactive:
self.display_prologue()
self.display_install_instructions()

try:
self.install_targets(interactive=interactive)
except Exception as e:
print(f"Stopping Install... because: {e}")

if interactive:
self.display_epilogue()
self.display_epilogue()

def display_prologue(self):
pass
Expand Down Expand Up @@ -183,6 +183,9 @@ def install_targets(self, interactive=True):
if path:
path = Path(path).expanduser().absolute()

if not path and not interactive:
continue

res = target_installer(path=path, interactive=interactive)
if res is None:
self.warn(f"Skipping or failed install for {target}... {Color.NORMAL}\n")
Expand Down

0 comments on commit 189bc4c

Please sign in to comment.