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