From b3ff510e10f6496876fab329bda55f056faa2431 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 28 Jun 2021 09:27:10 +0200 Subject: [PATCH] [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 --- utils/lib.sh | 4 ++-- utils/lxc.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/lib.sh b/utils/lib.sh index 185012c5d..014d4a740 100755 --- a/utils/lib.sh +++ b/utils/lib.sh @@ -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 diff --git a/utils/lxc.sh b/utils/lxc.sh index 90c4949a6..f94e9841a 100755 --- a/utils/lxc.sh +++ b/utils/lxc.sh @@ -45,8 +45,8 @@ ubu2010_boilerplate="$ubu1904_boilerplate" # shellcheck disable=SC2034 archlinux_boilerplate=" -pacman -Syu --noconfirm -pacman -S --noconfirm inetutils git curl wget sudo +pacman --noprogressbar -Syu --noconfirm +pacman --noprogressbar -S --noconfirm inetutils git curl wget sudo echo 'Set disable_coredump false' >> /etc/sudo.conf "