From 0efbd2a22f49881d1500d26a4e1fd1378d33d2c7 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Thu, 13 Aug 2020 16:43:46 +0200 Subject: [PATCH] fix: bad function syntax 2nd try --- compile_sql.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compile_sql.sh b/compile_sql.sh index c089b7f..66f86e1 100755 --- a/compile_sql.sh +++ b/compile_sql.sh @@ -1,7 +1,6 @@ #!/usr/bin/env sh -function to_header -{ +to_header () { if [ -f ./include/sql/$1.h ] then if [ -z $(find ./sql/$1.sql -newer ./include/sql/$1.h -print) ] @@ -11,7 +10,6 @@ function to_header fi echo "Compiling $1" xxd -i sql/$1.sql | sed 's/\([0-9a-f]\)$/\0, 0x00/' > ./include/sql/$1.h - } cd "$(dirname "$0")";