From 45d2bdaeac96827a34e73091bed7885bfa0f1217 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Mon, 29 Jun 2020 18:47:42 +0200 Subject: [PATCH] fix: bad shell syntax --- compile_migrations.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile_migrations.sh b/compile_migrations.sh index 36ab0c2..7a0a1fe 100755 --- a/compile_migrations.sh +++ b/compile_migrations.sh @@ -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;