mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add check on abort
This commit is contained in:
parent
2d424131de
commit
39038b50bd
1 changed files with 1 additions and 1 deletions
|
@ -32,12 +32,12 @@ _dolauncher() {
|
||||||
update | grep -q Xfce && _LAUNCHER="${_LAUNCHER} XFCE Xfce"
|
update | grep -q Xfce && _LAUNCHER="${_LAUNCHER} XFCE Xfce"
|
||||||
ABORT=""
|
ABORT=""
|
||||||
_dialog --title " Desktop Menu " --menu "" 10 40 6 ${_LAUNCHER} 2>${_ANSWER} || _ABORT=1
|
_dialog --title " Desktop Menu " --menu "" 10 40 6 ${_LAUNCHER} 2>${_ANSWER} || _ABORT=1
|
||||||
|
[[ -e /tmp/.launcher-running ]] && rm /tmp/.launcher-running
|
||||||
if [[ -n "${_ABORT}" ]]; then
|
if [[ -n "${_ABORT}" ]]; then
|
||||||
clear
|
clear
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
_EXIT="$(cat ${_ANSWER})"
|
_EXIT="$(cat ${_ANSWER})"
|
||||||
[[ -e /tmp/.launcher-running ]] && rm /tmp/.launcher-running
|
|
||||||
if [[ "${_EXIT}" == "GNOME" ]]; then
|
if [[ "${_EXIT}" == "GNOME" ]]; then
|
||||||
_dialog --defaultno --yesno "Gnome Desktop:\nDo you want to use the Wayland Backend?" 6 40
|
_dialog --defaultno --yesno "Gnome Desktop:\nDo you want to use the Wayland Backend?" 6 40
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
|
|
Loading…
Reference in a new issue