[fix] pacman --noprogressbar in shell scripts

From pacman's man page:

  --noprogressbar
    Do not show a progress bar when downloading files. This can be useful for
    scripts that call pacman and capture the output.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-06-28 09:27:10 +02:00
parent 73fc6499d8
commit b3ff510e10
2 changed files with 4 additions and 4 deletions

View file

@ -1557,7 +1557,7 @@ pkg_install() {
;;
arch)
# shellcheck disable=SC2068
pacman -Sy --noconfirm $@
pacman --noprogressbar -Sy --noconfirm $@
;;
fedora)
# shellcheck disable=SC2068
@ -1589,7 +1589,7 @@ pkg_remove() {
;;
arch)
# shellcheck disable=SC2068
pacman -R --noconfirm $@
pacman --noprogressbar -R --noconfirm $@
;;
fedora)
# shellcheck disable=SC2068