From a87a520f59769e6eb799ff3fe17364498846cc54 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 12 Jul 2023 20:13:01 +0200 Subject: [PATCH] add check on abort --- usr/bin/archboot-launcher.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/bin/archboot-launcher.sh b/usr/bin/archboot-launcher.sh index 97e9ede1a..701b0c22d 100755 --- a/usr/bin/archboot-launcher.sh +++ b/usr/bin/archboot-launcher.sh @@ -31,6 +31,10 @@ _dolauncher() { 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 + clear + exit 1 + fi _EXIT="$(cat ${_ANSWER})" [[ -e /tmp/.launcher-running ]] && rm /tmp/.launcher-running if [[ "${_EXIT}" == "GNOME" ]]; then