Query the User

Yes/No Question

read -p "Do you wish to continue? (y/n): " Response
if [[ ! $Response =~ ^[yY]$ ]]
then
  exit
fi