2020-10-07 23:56:44 +08:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
tools=(
|
2020-10-08 15:01:31 +08:00
|
|
|
go
|
|
|
|
dotnet
|
|
|
|
npm
|
|
|
|
node
|
|
|
|
java
|
|
|
|
javac
|
|
|
|
mono
|
|
|
|
mcs
|
|
|
|
virtualenv
|
2020-10-07 23:56:44 +08:00
|
|
|
)
|
|
|
|
|
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
|