X-Git-Url: https://git.josue.xyz/?p=whiptailexamples%2F.git;a=blobdiff_plain;f=radiolist.sh;fp=radiolist.sh;h=9f0b3c661cdaa927a84e9d69aaa21f4c84195b2f;hp=0000000000000000000000000000000000000000;hb=4eb1a6e1220dee809c089a0a7db1f22a1277c8e0;hpb=e38cc981105fb88c40c6e287900fb8a2537d3c29 diff --git a/radiolist.sh b/radiolist.sh new file mode 100755 index 0000000..9f0b3c6 --- /dev/null +++ b/radiolist.sh @@ -0,0 +1,14 @@ +#!/bin/bash +DISTROS=$(whiptail --title "Test Checklist Dialog" --radiolist \ +"What is the Linux distro of your choice?" 15 60 4 \ +"debian" "Venerable Debian" ON \ +"ubuntu" "Popular Ubuntu" OFF \ +"centos" "Stable CentOS" OFF \ +"mint" "Rising Star Mint" OFF 3>&1 1>&2 2>&3) + +exitstatus=$? +if [ $exitstatus = 0 ]; then + echo "The chosen distro is:" $DISTROS +else + echo "You chose Cancel." +fi