I'm using YAD to create a Yes or No dialog box in a bash script:
yad --image "dialog-question" --title "Alert" --button=gtk-yes:0 --button=gtk-no:1 --text "Are you sure you want to do this?"
If I click "No" to the question I want the bash script to terminate. If I click "Yes" I want the rest of the operations in the bash script to execute.
What code should I add to accomplish this?