mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-02-04 11:07:48 -08:00
fix(cli): update command name based on availability of viu-media
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import logging
|
||||
import shutil
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
@@ -188,7 +189,8 @@ You can disable this message by turning off the welcome_screen option in the con
|
||||
):
|
||||
import subprocess
|
||||
|
||||
cmd = ["viu", "config", "--update"]
|
||||
_cli_cmd_name="viu" if not shutil.which("viu-media") else "viu-media"
|
||||
cmd = [_cli_cmd_name, "config", "--update"]
|
||||
print(f"running '{' '.join(cmd)}'...")
|
||||
subprocess.run(cmd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user