add infoboxes as error messages

This commit is contained in:
Tobias Powalowski 2023-08-02 20:44:44 +02:00
parent a8ff5a14e2
commit 8014032992

View file

@ -47,7 +47,7 @@ _create_container() {
_network_check() { _network_check() {
if ! getent hosts www.google.com &>"${_NO_LOG}"; then if ! getent hosts www.google.com &>"${_NO_LOG}"; then
_progress "100" "Network not yet ready. Please configure your network first." _dialog --title " ERROR " "Network not yet ready. Please configure your network first." 3 70
sleep 3 sleep 3
exit 1 exit 1
fi fi
@ -55,7 +55,7 @@ _network_check() {
_update_installer_check() { _update_installer_check() {
if [[ -f /.update ]]; then if [[ -f /.update ]]; then
_progress "100" "update is already running on other tty... You need to remove /.update first!" _dialog --title " ERROR " "update is already running on other tty...\nYou need to remove /.update first!" 5 70
sleep 3 sleep 3
exit 1 exit 1
fi fi
@ -66,7 +66,7 @@ _update_installer_check() {
_full_system_check() { _full_system_check() {
if [[ -e "/.full_system" ]]; then if [[ -e "/.full_system" ]]; then
_progress "100" "Full Arch Linux system already setup." _dialog --title " SUCCESS " "Full Arch Linux system already setup." 3
sleep 3 sleep 3
exit 0 exit 0
fi fi