mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
add dialogbox for aborting script
This commit is contained in:
parent
9c64d6e9d6
commit
531ebcaf31
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue