honk/preflight.sh

20 lines
455 B
Bash
Raw Permalink Normal View History

set -e
2022-05-31 08:32:22 +02:00
go version > /dev/null 2>&1 || (echo go 1.16+ is required && false)
2022-05-31 08:45:51 +02:00
v=`go version | egrep -o "go1\.[^.]+"` || echo failed to identify go version
if [ "$v" \< "go1.16" ] ; then
echo go version is too old: $v
echo go 1.16+ is required
false
fi
if [ \! \( -e /usr/include/sqlite3.h -o -e /usr/local/include/sqlite3.h \) ] ; then
echo unable to find sqlite3.h header
echo please install libsqlite3 dev package
false
fi
touch .preflightcheck