Fix string eval bug in migration files check (#6740)

pull/6741/head
Gokhan Gulbiz 2023-03-02 08:44:57 +03:00 committed by GitHub
parent e2654deeae
commit f027a47ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ do
downgrade_migration_file="src/backend/distributed/sql/downgrades/citus--$to_version--$from_version.sql" downgrade_migration_file="src/backend/distributed/sql/downgrades/citus--$to_version--$from_version.sql"
# check for the existence of migration scripts # 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 then
echo "$file is updated, but $downgrade_migration_file is not updated in branch" echo "$file is updated, but $downgrade_migration_file is not updated in branch"
ret_value=1 ret_value=1