#!/bin/bash
echo "------------"
echo "Welcome Page"
echo "------------"
a="mango"
while true
do
echo "Type mango for exit"
read data
if [ $data -ne $a]; then
echo "Wrong choice"
exit 1
fi
done
The output is:
------------
Welcome Page
------------
Type mango for exit
mango
while.sh: line 10: [: missing `]'
Type mango for exit