refactor(KIAUH): use red dash instead of "Unknown" if repo info not available

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2023-12-25 20:44:04 +01:00
parent b4f5c3c1ac
commit 6c59d58193

View File

@@ -68,7 +68,7 @@ def get_repo_name(repo_dir: Path) -> str:
result = "/".join(result.decode().strip().split("/")[-2:])
return f"{COLOR_CYAN}{result}{RESET_FORMAT}"
except subprocess.CalledProcessError:
return f"{COLOR_YELLOW}Unknown{RESET_FORMAT}"
return f"{COLOR_RED}-{RESET_FORMAT}"
def get_install_status_common(