Trying to run a script to ask a user a question with a yes/no answer. If yes generate a response and if no ask them the same question 4 times. I have tried many variations but keep failing. (I am completely new to scripting!)
read -p "Would you like a cup of tea?"
if [ "RESP" = "yes" ]; then
echo "Great I will make you a cup of tea!"
else
[ "RESP" = "no" ]: then
echo [ "Are you sure you won't have a cup of tea?"
c=0
while [ $c -le 4 ]
count++
while [ $count -le 4 ]
fi