add exit calls to pacman calls

This commit is contained in:
Tobias Powalowski 2024-06-14 19:08:28 +02:00
parent fdcc5d3e36
commit 521896057d

View file

@ -24,7 +24,7 @@ _IGNORE=""
done done
fi fi
#shellcheck disable=SC2086 #shellcheck disable=SC2086
pacman -Syu ${_IGNORE} --noconfirm &>"${_LOG}" pacman -Syu ${_IGNORE} --noconfirm &>"${_LOG}" || exit 1
[[ ! -e "/.full_system" ]] && _cleanup_install [[ ! -e "/.full_system" ]] && _cleanup_install
rm /.archboot rm /.archboot
} }
@ -36,7 +36,7 @@ _install_graphic() {
fi fi
for i in ${_GRAPHIC}; do for i in ${_GRAPHIC}; do
#shellcheck disable=SC2086 #shellcheck disable=SC2086
pacman -S ${i} --noconfirm &>"${_LOG}" pacman -S ${i} --noconfirm &>"${_LOG}" || exit 1
[[ ! -e "/.full_system" ]] && _cleanup_install [[ ! -e "/.full_system" ]] && _cleanup_install
[[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4413000 ]] && _cleanup_cache [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4413000 ]] && _cleanup_cache
rm -f /var/log/pacman.log rm -f /var/log/pacman.log
@ -79,7 +79,7 @@ _prepare_graphic() {
for i in ${_FIX_PACKAGES}; do for i in ${_FIX_PACKAGES}; do
_progress "${_COUNT}" "Installing basic packages: ${i}..." _progress "${_COUNT}" "Installing basic packages: ${i}..."
#shellcheck disable=SC2086 #shellcheck disable=SC2086
pacman -S ${i} --noconfirm &>"${_LOG}" pacman -S ${i} --noconfirm &>"${_LOG}" || exit 1
[[ ! -e "/.full_system" ]] && _cleanup_install [[ ! -e "/.full_system" ]] && _cleanup_install
[[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4413000 ]] && _cleanup_cache [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4413000 ]] && _cleanup_cache
rm -f /var/log/pacman.log rm -f /var/log/pacman.log