mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50: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 ##
|
## begin execution ##
|
||||||
if [[ -e /tmp/.setup-running ]]; then
|
if [[ -e /tmp/.setup-running ]]; then
|
||||||
echo "HINT:"
|
DIALOG --infobox "HINT:\n\nsetup already runs on a different console!\nPlease remove /tmp/.setup-running first to launch setup!" 5 40
|
||||||
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
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
: >/tmp/.setup-running
|
: >/tmp/.setup-running
|
||||||
|
|
Loading…
Reference in a new issue