Commit 172138b2 authored by Chris Croome's avatar Chris Croome

semi-colon omitted

parent 8af46854
Pipeline #7379 passed with stage
in 21 seconds
......@@ -45,7 +45,7 @@ fi
MYSQL_USER_CHECK=$(mysql --defaults-extra-file="${HOME}/.my.cnf" --user="${MYSQL_USER}" -Bse "EXIT" > /dev/null 2>&1 && echo "TRUE" || echo "FALSE")
if [[ "${MYSQL_USER_CHECK}" == "TRUE" ]]; then
# Get a list of databases
MYSQL_DATABASES=$(mysql --user="${MYSQL_USER}" -Bse "SHOW DATABASES;" | grep -v ^information_schema$)
MYSQL_DATABASES=$(mysql --user="${MYSQL_USER}" -Bse "SHOW DATABASES" | grep -v ^information_schema$)
if [[ -z "${MYSQL_DATABASES}" ]]; then
echo "No databases found for MySQL user ${MYSQL_USER}"
exit 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment