mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
better error handling
This commit is contained in:
parent
e3a5a0af22
commit
34f745673d
1 changed files with 4 additions and 1 deletions
|
@ -115,7 +115,10 @@ _prepare_pacman() {
|
|||
done
|
||||
[[ -e /etc/systemd/system/pacman-init.service ]] && systemctl stop pacman-init.service
|
||||
_dialog --infobox "Refreshing package database..." 3 40
|
||||
${_PACMAN} -Sy &>"${_LOG}" || (_dialog --msgbox "Pacman preparation failed! Check ${_LOG} for errors." 6 60; return 1)
|
||||
if ! ${_PACMAN} -Sy &>"${_LOG}"; then
|
||||
_dialog --msgbox "Pacman preparation failed! Check ${_LOG} for errors." 6 60
|
||||
return 1
|
||||
fi
|
||||
_dialog --infobox "Update Arch Linux keyring..." 3 40
|
||||
_KEYRING="archlinux-keyring"
|
||||
[[ "${_RUNNING_ARCH}" == "aarch64" ]] && _KEYRING="${_KEYRING} archlinuxarm-keyring"
|
||||
|
|
Loading…
Reference in a new issue