#!/bin/bash askContinue () { echo "${1}" echo "Are you ready to continue? (yes/no)" read input if [ "$input" != "n" ] && [ "$input" != "no" ] then echo "${2}" else exit 1 fi }