1
0
Fork 0

hide unnecessary logs

This commit is contained in:
Kim, Jimin 2022-11-12 01:05:03 +09:00
parent 5a7f98aa55
commit 3a743af709

View file

@ -4,13 +4,13 @@ from src import log
def install_via_pacman(package: str):
if system(f"paru -S --noconfirm {package}"):
if system(f"paru -S --noconfirm {package} > /dev/null"):
log.error(f"Failed to install {package} via pacman")
exit(1)
def install_via_pip(package: str):
if system(f"pip install {package}"):
if system(f"pip install {package} > /dev/null"):
log.error(f"Failed to install {package} via pip")
exit(1)