hide unnecessary logs
This commit is contained in:
parent
5a7f98aa55
commit
3a743af709
1 changed files with 2 additions and 2 deletions
|
@ -4,13 +4,13 @@ from src import log
|
||||||
|
|
||||||
|
|
||||||
def install_via_pacman(package: str):
|
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")
|
log.error(f"Failed to install {package} via pacman")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
def install_via_pip(package: str):
|
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")
|
log.error(f"Failed to install {package} via pip")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue