honk/preflight.sh

20 lines
455 B
Bash
Raw Normal View History

set -e
go version > /dev/null 2>&1 || (echo go 1.18+ 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.18" ] ; then
2022-05-31 08:45:51 +02:00
echo go version is too old: $v
echo go 1.18+ is required
2022-05-31 08:45:51 +02:00
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