Merge pull request #57 from Jumanjii/patch-1

Add missing space in if with square bracket
This commit is contained in:
Fco. Javier Delgado del Hoyo 2021-11-08 16:01:46 +01:00 committed by GitHub
commit 555e9026cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ set -o pipefail
SQL=$(gunzip -c "$1") SQL=$(gunzip -c "$1")
DB_NAME=${MYSQL_DATABASE:-${MYSQL_DB}} DB_NAME=${MYSQL_DATABASE:-${MYSQL_DB}}
if [ -z "${DB_NAME}"] if [ -z "${DB_NAME}" ]
then then
DB_NAME=$(echo "$SQL" | grep -oE '(Database: (.+))' | cut -d ' ' -f 2) DB_NAME=$(echo "$SQL" | grep -oE '(Database: (.+))' | cut -d ' ' -f 2)
fi fi