add dialogbox for aborting script

This commit is contained in:
Tobias Powalowski 2022-05-08 21:22:05 +02:00
parent 9c64d6e9d6
commit 531ebcaf31

View file

@ -236,11 +236,7 @@ mainmenu() {
#####################
## begin execution ##
if [[ -e /tmp/.setup-running ]]; then
echo "HINT:"
echo "setup already runs on a different console!"
echo "Please remove /tmp/.setup-running first to launch setup!"
echo "Hit ENTER to exit this message."
read
DIALOG --infobox "HINT:\n\nsetup already runs on a different console!\nPlease remove /tmp/.setup-running first to launch setup!" 5 40
exit 1
fi
: >/tmp/.setup-running