So I am pretty familiar with bash but the second if statement keeps throwing me an error.
./run.sh: line 39: [: q: integer expression expected
./run.sh: line 39: [: q: integer expression expected
I am not exactly sure what is the problem. I am pretty sure my syntax is correct.
read -p "Option Number-> " answer
# Check to see if the answer is only letters
if [[ "$answer" =~ ^[a-zA-Z]+$ ]];then
if [ "$answer" -eq "q" ] || [ "$answer" -eq "Q" ];then
exit
fi