Fix fallback dependency detection

This commit is contained in:
Dymas
2026-07-19 14:40:03 +02:00
parent 02226ad5c9
commit 348d97488a
7 changed files with 46 additions and 5 deletions
+4
View File
@@ -1009,6 +1009,10 @@ def cli_executable_exists(command):
return bool(shutil.which(text) or (Path(text).exists() and os.access(text, os.X_OK)))
def cli_executable_exists_any(*commands):
return any(cli_executable_exists(command) for command in commands)
def printable_command(command):
return " ".join(sh_quote(part) for part in command)