mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
add check on abort
This commit is contained in:
parent
a87a520f59
commit
2d424131de
1 changed files with 3 additions and 2 deletions
|
@ -30,8 +30,9 @@ _dolauncher() {
|
|||
update | grep -q KDE && _LAUNCHER="${_LAUNCHER} PLASMA KDE/Plasma"
|
||||
update | grep -q Sway && _LAUNCHER="${_LAUNCHER} SWAY Sway"
|
||||
update | grep -q Xfce && _LAUNCHER="${_LAUNCHER} XFCE Xfce"
|
||||
_dialog --title " Desktop Menu " --menu "" 10 40 6 ${_LAUNCHER} 2>${_ANSWER}
|
||||
if [[ $? -eq 0 ]]; then
|
||||
ABORT=""
|
||||
_dialog --title " Desktop Menu " --menu "" 10 40 6 ${_LAUNCHER} 2>${_ANSWER} || _ABORT=1
|
||||
if [[ -n "${_ABORT}" ]]; then
|
||||
clear
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue