Add condition function
This commit is contained in:
parent
89472412a1
commit
9dc3b285fa
1 changed files with 6 additions and 0 deletions
|
@ -207,6 +207,12 @@ class Installer:
|
||||||
ui.info()
|
ui.info()
|
||||||
|
|
||||||
|
|
||||||
|
def evaluate_condition(command: str) -> bool:
|
||||||
|
"""Run a bash command. On success return True, else return False."""
|
||||||
|
|
||||||
|
return subprocess.run(command, shell=True).returncode == 0
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
"""Parse args and instantiate the Installer."""
|
"""Parse args and instantiate the Installer."""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue