From db19ca11308cf9d4866daef4fbaeed3e95abe029 Mon Sep 17 00:00:00 2001 From: Allan Jacquet-Cretides Date: Sun, 7 Nov 2021 23:26:56 +0100 Subject: [PATCH] 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 --- restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index 575624e..131d6a5 100755 --- a/restore.sh +++ b/restore.sh @@ -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