mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
Merge pull request #57 from Jumanjii/patch-1
Add missing space in if with square bracket
This commit is contained in:
commit
555e9026cb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue