try out this-
count=$($path/./mysql -h $ip -u $user -p$password $schema -s -e "select count(1) from employee where [email protected]");
if [[ "${count}" = '0' ]]; then break else echo "Email exist, please enter a new value : " fi
count=$( $path/to/mysql -h $ip -u $user -p$password $schema -s \
-e "select count(1) from employee where [email protected]");
if [[ "${count}" = '0' ]]; then
break
else
echo "Email exist, please enter a new value : "
fi