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
31a3c273f6
commit
a87a520f59
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ _dolauncher() {
|
||||||
update | grep -q Sway && _LAUNCHER="${_LAUNCHER} SWAY Sway"
|
update | grep -q Sway && _LAUNCHER="${_LAUNCHER} SWAY Sway"
|
||||||
update | grep -q Xfce && _LAUNCHER="${_LAUNCHER} XFCE Xfce"
|
update | grep -q Xfce && _LAUNCHER="${_LAUNCHER} XFCE Xfce"
|
||||||
_dialog --title " Desktop Menu " --menu "" 10 40 6 ${_LAUNCHER} 2>${_ANSWER}
|
_dialog --title " Desktop Menu " --menu "" 10 40 6 ${_LAUNCHER} 2>${_ANSWER}
|
||||||
|
if [[ $? -eq 0 ]]; then
|
||||||
|
clear
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
_EXIT="$(cat ${_ANSWER})"
|
_EXIT="$(cat ${_ANSWER})"
|
||||||
[[ -e /tmp/.launcher-running ]] && rm /tmp/.launcher-running
|
[[ -e /tmp/.launcher-running ]] && rm /tmp/.launcher-running
|
||||||
if [[ "${_EXIT}" == "GNOME" ]]; then
|
if [[ "${_EXIT}" == "GNOME" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue