mirror of https://github.com/citusdata/citus.git
Fix string eval bug in migration files check (#6740)
parent
e2654deeae
commit
f027a47ca8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue