fix: bad function syntax 2nd try
This commit is contained in:
parent
4fc2449e05
commit
0efbd2a22f
1 changed files with 1 additions and 3 deletions
|
@ -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")";
|
||||
|
|
Loading…
Reference in a new issue