Skip to content

Commit 6e50101

Browse files
kkimurakRe4zOon
andauthored
Merge pull request #11 from Re4zOon/patch-1
* Fix IFS parsing * remove empty line * Make temporary variable `IFS_ORG` function-local Co-authored-by: Re4zOon <[email protected]>
2 parents 3f4c446 + 6886474 commit 6e50101

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/functions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ load_extensions() {
318318
psql -U ${PG_USER} -d ${database} -c "CREATE EXTENSION IF NOT EXISTS unaccent;" >/dev/null 2>&1
319319
fi
320320

321-
IFS_ORG=$IFS
321+
local IFS_ORG=$IFS
322322
IFS=,
323323
for extension in ${DB_EXTENSION}; do
324324
echo "‣ Loading ${extension} extension..."
@@ -334,7 +334,7 @@ create_database() {
334334
echo "INFO! Database cannot be created on a $REPLICATION_MODE node. Skipping..."
335335
;;
336336
*)
337-
IFS_ORG=$IFS
337+
local IFS_ORG=$IFS
338338
IFS=,
339339
for database in ${DB_NAME}; do
340340
echo "Creating database: ${database}..."

0 commit comments

Comments
 (0)