fix: bad function syntax 2nd try

This commit is contained in:
Tobias Reisinger 2020-08-13 16:43:46 +02:00
parent 4fc2449e05
commit 0efbd2a22f

View file

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