X-Git-Url: https://git.josue.xyz/?p=whiptailexamples%2F.git;a=blobdiff_plain;f=yesno.sh;fp=yesno.sh;h=db8b277a36e11410fd829ce244db97a4216b813f;hp=0000000000000000000000000000000000000000;hb=4eb1a6e1220dee809c089a0a7db1f22a1277c8e0;hpb=e38cc981105fb88c40c6e287900fb8a2537d3c29 diff --git a/yesno.sh b/yesno.sh new file mode 100755 index 0000000..db8b277 --- /dev/null +++ b/yesno.sh @@ -0,0 +1,6 @@ +#!/bin/bash +if (whiptail --title "Test Yes/No Box" --yesno "Choose between Yes and No." 10 60) then + echo "You chose Yes. Exit status was $?." +else + echo "You chose No. Exit status was $?." +fi