fix: bad shell syntax

This commit is contained in:
Tobias Reisinger 2020-06-29 18:47:42 +02:00
parent 1112b65a75
commit 45d2bdaeac

View file

@ -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;