add noconfirm

This commit is contained in:
Tobias Powalowski 2022-05-14 12:15:13 +02:00
parent 8b61388824
commit 9325d54810

View file

@ -258,11 +258,11 @@ _prepare_xfce() {
echo "Running pacman to install packages: ${_FULL_PACKAGES} ${_X_PACKAGES} ..." echo "Running pacman to install packages: ${_FULL_PACKAGES} ${_X_PACKAGES} ..."
_INSTALL_SOURCE="file:///var/cache/pacman/pkg" _INSTALL_SOURCE="file:///var/cache/pacman/pkg"
_create_pacman_conf _create_pacman_conf
pacman -Sy --config ${_PACMAN_CONF} >/dev/null 2>&1 || exit 1
# workaround unsolvable zstd bug, # workaround unsolvable zstd bug,
# booting with higher memory results in not having /var/lib/pacman/local/zstd-* # booting with higher memory results in not having /var/lib/pacman/local/zstd-*
pacman -Sy zstd --config ${_PACMAN_CONF} --overwrite '*' >/dev/null 2>&1 || exit 1
#shellcheck disable=SC2086 #shellcheck disable=SC2086
pacman -Sy --config ${_PACMAN_CONF} >/dev/null 2>&1 || exit 1 pacman -S zstd --config ${_PACMAN_CONF} --noconfirm --overwrite '*' >/dev/null 2>&1 || exit 1
for i in ${_XORG}; do for i in ${_XORG}; do
#shellcheck disable=SC2086 #shellcheck disable=SC2086
pacman -S ${i} --config ${_PACMAN_CONF} --noconfirm >/dev/null 2>&1 || exit 1 pacman -S ${i} --config ${_PACMAN_CONF} --noconfirm >/dev/null 2>&1 || exit 1
@ -278,6 +278,7 @@ _prepare_xfce() {
fi fi
# workaround unsolvable zstd bug, # workaround unsolvable zstd bug,
# booting with higher memory results in not having /var/lib/pacman/local/zstd-* # booting with higher memory results in not having /var/lib/pacman/local/zstd-*
#shellcheck disable=SC2086
pacman -Sy zstd --noconfirm --overwrite '*' >/dev/null 2>&1 || exit 1 pacman -Sy zstd --noconfirm --overwrite '*' >/dev/null 2>&1 || exit 1
#shellcheck disable=SC2086 #shellcheck disable=SC2086
pacman -Syu ${_IGNORE} --noconfirm >/dev/null 2>&1 || exit 1 pacman -Syu ${_IGNORE} --noconfirm >/dev/null 2>&1 || exit 1