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,12 +1063,11 @@ class Viv:
make_executable(src) make_executable(src)
echo("symlinking cli") echo("symlinking cli")
if cli.is_file() and confirm( if cli.is_file():
f"Existing file at {a.style(str(cli),'bold')}, " echo(f"Existing file at {a.style(str(cli),'bold')}")
"would you like to overwrite it?" if confirm("Would you like to overwrite it?"):
): cli.unlink()
cli.unlink() cli.symlink_to(src)
cli.symlink_to(src)
else: else:
cli.symlink_to(src) cli.symlink_to(src)