linuxkurs/beispiele/5/10-whiptail.sh
2019-01-17 10:00:51 +01:00

9 lines
285 B
Bash
Executable File

#!/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