Stuck at Learn Bash By Building 5 Programs

I am currently doing Learn bash by building programs challenge.
stuck at the challenge where I have to add if statement to my bingo.sh file
what I have done so far in my file,

#!/bin/bash

# Bingo Number Generator

echo -e "\n~~ Bingo Number Generator ~~\n"

NUMBER=$(( RANDOM % 75 + 1 ))
TEXT="The next number is, "

echo $NUMBER

if (( NUMBER <= 15 ))
then
   echo $TEXT B:$NUMBER
fi

Still getting an error. Please can anyone tell me what I am doing wrong?

sorry found the problem. I had two echo statements in my code.

1 Like