Add missing space in if with square bracket

A missing space at the end of an if condition was generating a warning message.
/restore.sh: line 14: [: missing `]'

Adding it delete this error message
This commit is contained in:
Allan Jacquet-Cretides 2021-11-07 23:26:56 +01:00 committed by GitHub
parent 726585bd41
commit db19ca1130
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")
DB_NAME=${MYSQL_DATABASE:-${MYSQL_DB}}
if [ -z "${DB_NAME}"]
if [ -z "${DB_NAME}" ]
then
DB_NAME=$(echo "$SQL" | grep -oE '(Database: (.+))' | cut -d ' ' -f 2)
fi