diff --git a/setup.py b/setup.py index be26976..77a627e 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ tmp_dir = "/tmp/com.developomp.setup" # -def silent_system(command: str, suppress_error: bool = True) -> None: +def silent_system(command: str, suppress_error: bool = False) -> None: if suppress_error: system(f"{command} &> /dev/null") else: diff --git a/src/initialize.py b/src/initialize.py index a6df41b..b56881e 100644 --- a/src/initialize.py +++ b/src/initialize.py @@ -4,7 +4,7 @@ from src.util import silent_system def install_via_pacman(package: str): - if silent_system(f"paru -S --noconfirm {package}"): + if silent_system(f"paru -S --noconfirm {package}", True): log.error(f"Failed to install {package} via pacman") exit(1) diff --git a/src/util.py b/src/util.py index 989483f..5e25674 100644 --- a/src/util.py +++ b/src/util.py @@ -131,7 +131,7 @@ def zsh_system(command: str) -> None: system(f"/usr/bin/zsh -c '{command}'") -def silent_system(command: str, suppress_error: bool = True) -> None: +def silent_system(command: str, suppress_error: bool = False) -> None: """os.system but does not show its log and error to the terminal. A copy of this function also exists in `setup.py`."""