style: seperate line for question

This commit is contained in:
Daylin Morgan 2023-05-31 11:07:15 -05:00
parent d0796ac350
commit fc30b5143b
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -1063,10 +1063,9 @@ 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?"
):
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: