Learn Bash Scripting by Building Five Programs - Build Five Programs

I am facing a problem in code

Add an empty line in front of where you print the response.

**#!/bin/bash

Program to tell a persons fortune

echo -e “\n~~ Fortune Teller ~~\n”

RESPONSES=(“Yes” “No” “Maybe” “Outlook good” “Don’t count on it” “Ask again later”)

N=$((RANDOM%6))

echo “”
echo -e “${RESPONSES[$N]}”

echo ${RESPONSES[5]}

echo -e “”

GET_FORTUNE(){

if [[ ! $1 ]]
then

echo “Ask a yes or no question:”

else

echo “Try again. Make sure it ends with a question mark:”

fi
read QUESTION

}

GET_FORTUNE

GET_FORTUNE
until [[ $QUESTION =~ ?$ ]]
do
GET_FORTUNE again

done**

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 OPR/93.0.0.0

Challenge: Learn Bash Scripting by Building Five Programs - Build Five Programs

Link to the challenge:

Can you explain in detail what is the issue that you need help with?