I have the following piece of a script:
set ${DB_TYPE:='mysqli'}
echo $DB_TYPE
if [ $DB_TYPE -eq "mysqli" -o $DB_TYPE -eq "mariadb" ]; then
#Do some stuff
else
echo >&2 "This database type is not supported"
echo >&2 "Did you forget to -e DB_TYPE='mysqli' ^OR^ -e DB_TYPE='mariadb' ?"
exit 1
fi
But this piece of script somehow fails on:
if [ $DB_TYPE -eq "mysqli" -o $DB_TYPE -eq "mariadb" ]; then
So how can I compare if $DB_TYPE id either "mysqli" or "mariadb"?