Skip to content

Commit

Permalink
fix(framework:skip) Avoid reinstalling FAB if already installed and…
Browse files Browse the repository at this point in the history
… confirmation is disabled (#4041)
  • Loading branch information
jafermarq authored Aug 19, 2024
1 parent 75b5de1 commit 5c2aa61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/py/flwr/cli/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def validate_and_install(
/ project_name
/ version
)
if install_dir.exists() and not skip_prompt:
if install_dir.exists():
if skip_prompt:
return install_dir
if not typer.confirm(
typer.style(
f"\n💬 {project_name} version {version} is already installed, "
Expand Down

0 comments on commit 5c2aa61

Please sign in to comment.