From 34d9842f85e98897eacc4e9ba3d4fcceaa39dc85 Mon Sep 17 00:00:00 2001 From: Timothy Messier Date: Thu, 2 Dec 2021 12:13:07 -0500 Subject: [PATCH] fix(testing/docker): Correctly reset IFS (#1754) --- testing/dbtest/docker/init-db.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/dbtest/docker/init-db.sh b/testing/dbtest/docker/init-db.sh index a2512f5727..4ab6005908 100755 --- a/testing/dbtest/docker/init-db.sh +++ b/testing/dbtest/docker/init-db.sh @@ -13,8 +13,10 @@ apply_migrations() { local major; local minor; local version; + local old_ifs; local d="$1"; + old_ifs=$IFS for file in $(ls -v ${d}/postgres/**/*.up.sql); do echo "Applying migration: ${file}" psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --no-password --dbname boundary_template -f "$file" @@ -28,7 +30,7 @@ apply_migrations() { read -ra MINOR_PARTS <<< "${PARTS[5]}" minor="10#${MINOR_PARTS[0]}" let version=${major}*1000+${minor} - IFS=' ' + IFS=$old_ifs done echo "setting boundary_schema_version for ${edition} to ${version}"; psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --no-password --dbname boundary_template -q <