From fc30b5143b975906b9ee264eb2aea35a18e85bc5 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 31 May 2023 11:07:15 -0500 Subject: [PATCH] style: seperate line for question --- src/viv/viv.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index 8174b9a..723486f 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -1063,12 +1063,11 @@ class Viv: make_executable(src) echo("symlinking cli") - if cli.is_file() and confirm( - f"Existing file at {a.style(str(cli),'bold')}, " - "would you like to overwrite it?" - ): - cli.unlink() - cli.symlink_to(src) + if cli.is_file(): + echo(f"Existing file at {a.style(str(cli),'bold')}") + if confirm("Would you like to overwrite it?"): + cli.unlink() + cli.symlink_to(src) else: cli.symlink_to(src)