Skip to content

Commit c454c31

Browse files
author
Sameer Naik
committed
Merge branch 'master' into postgis-extension-finalization
2 parents d97c2c5 + 7da65fa commit c454c31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/functions

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ create_database() {
314314
*)
315315
for database in $(awk -F',' '{for (i = 1 ; i <= NF ; i++) print $i}' <<< "${DB_NAME}"); do
316316
echo "Creating database: ${database}..."
317-
if [[ -z $(psql -U ${PG_USER} -Atc "SELECT 1 FROM pg_catalog.pg_database WHERE datname = '${DB_NAME}'";) ]]; then
317+
if [[ -z $(psql -U ${PG_USER} -Atc "SELECT 1 FROM pg_catalog.pg_database WHERE datname = '${database}'";) ]]; then
318318
psql -U ${PG_USER} -c "CREATE DATABASE \"${database}\" WITH TEMPLATE = \"${DB_TEMPLATE}\";" >/dev/null
319319
fi
320320

0 commit comments

Comments
 (0)