From f027a47ca8891c39b8f90e775435df0513263946 Mon Sep 17 00:00:00 2001 From: Gokhan Gulbiz Date: Thu, 2 Mar 2023 08:44:57 +0300 Subject: [PATCH] Fix string eval bug in migration files check (#6740) --- ci/check_migration_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/check_migration_files.sh b/ci/check_migration_files.sh index bb2802ef3b9..61fc5954084 100755 --- a/ci/check_migration_files.sh +++ b/ci/check_migration_files.sh @@ -23,7 +23,7 @@ do downgrade_migration_file="src/backend/distributed/sql/downgrades/citus--$to_version--$from_version.sql" # check for the existence of migration scripts - if [[ $(grep --line-regexp --count downgrade_migration_file <<< "$downgrade_files") == 0 ]] + if [[ $(grep --line-regexp --count "$downgrade_migration_file" <<< "$downgrade_files") == 0 ]] then echo "$file is updated, but $downgrade_migration_file is not updated in branch" ret_value=1