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
|
then
|
||||||
if [ -z $(find ./sql/migration_$migration_num.sql -newer ./include/migrations/$migration_num.sql.h -print) ]
|
if [ -z $(find ./sql/migration_$migration_num.sql -newer ./include/migrations/$migration_num.sql.h -print) ]
|
||||||
then
|
then
|
||||||
((migration_num++))
|
migration_num=$((migration_num+1))
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "Recompiling migration $migration_num"
|
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
|
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
|
done
|
||||||
|
|
||||||
cd $PWD;
|
cd $PWD;
|
||||||
|
|
Loading…
Reference in a new issue