#!/usr/bin/env bash plea=no read -p "You ran test kitch, right? (yes/no) " plea while [ "yes" != "$plea" -a "no" != "$plea" ] ; do echo "Hey, man, 'yes' or 'no' please." read -p "But, really you ran test kitchen? (yes/no) " plea done if [ "no" == "$plea" ] ; then echo "Thanks for your honesty. Bailing!" exit 1 fi echo "All right then..."