linuxkurs/beispiele/5/10-whiptail.sh

9 lines
285 B
Bash
Raw Normal View History

2019-01-13 18:49:01 +01:00
#!/bin/bash
if (whiptail --title "Example Dialog" --yesno "This is an example of a yes/no box." 8 78)
then
whiptail --title "Exit Info" --msgbox "Du hast Yes gewählt. Exit Status: $?." 8 78
else
whiptail --title "Exit Info" --msgbox "Du hast NO gewählt. Exit Status: $?." 8 78
fi