diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-06-28 09:27:10 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-07-03 18:24:55 +0200 |
commit | b3ff510e10f6496876fab329bda55f056faa2431 (patch) | |
tree | ba78fbb0655382253f60f68b3fdf2363405ba340 /utils | |
parent | 73fc6499d8416fc262c5d28688b91bf4580ab2b8 (diff) | |
download | searxng-b3ff510e10f6496876fab329bda55f056faa2431.tar.gz searxng-b3ff510e10f6496876fab329bda55f056faa2431.zip |
[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>
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/lib.sh | 4 | ||||
-rwxr-xr-x | 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 " |