memgraph/tools/check-build-system

27 lines
321 B
Plaintext
Raw Normal View History

#!/bin/bash -e
tools=(
2020-10-08 15:01:31 +08:00
go
dotnet
npm
node
java
javac
mono
mcs
virtualenv
)
2020-10-08 15:01:31 +08:00
is_ok=true
for tool in "${tools[@]}"; do
if ! which "$tool" >/dev/null; then
is_ok=false
echo "$tool not installed!"
fi
done
if [ "$is_ok" = true ]; then
exit 0
else
exit 1
fi