fix: bad shell syntax
This commit is contained in:
parent
1112b65a75
commit
45d2bdaeac
1 changed files with 2 additions and 2 deletions
|
@ -10,13 +10,13 @@ do
|
|||
then
|
||||
if [ -z $(find ./sql/migration_$migration_num.sql -newer ./include/migrations/$migration_num.sql.h -print) ]
|
||||
then
|
||||
((migration_num++))
|
||||
migration_num=$((migration_num+1))
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
echo "Recompiling migration $migration_num"
|
||||
xxd -i sql/migration_$migration_num.sql | sed 's/\([0-9a-f]\)$/\0, 0x00/' > ./include/migrations/$migration_num.sql.h
|
||||
((migration_num++))
|
||||
migration_num=$((migration_num+1))
|
||||
done
|
||||
|
||||
cd $PWD;
|
||||
|
|
Loading…
Reference in a new issue