Skip to content

Commit

Permalink
Fix string eval bug in migration files check (#6740)
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangulbiz authored Mar 2, 2023
1 parent e2654de commit f027a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/check_migration_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f027a47

Please sign in to comment.