mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add exit calls to pacman calls
This commit is contained in:
parent
fdcc5d3e36
commit
521896057d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue