1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-07 00:46:53 +01:00
Files
glusterd2/scripts/check-reqs.sh
Prashanth Pai b623db2fd8 Remove etcd binary as an external dependency
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2016-11-18 13:53:32 +05:30

22 lines
394 B
Bash
Executable File

#!/bin/bash
# Checks if the tools required for properly building, verifying and testing GlusterD are installed.
TOOLS=(glide gometalinter)
MISSING=0
for tool in ${TOOLS[@]}; do
type $tool >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "$tool package is missing on the system"
MISSING=1
else
echo "$tool package is available"
fi
done
if [ $MISSING -ne 0 ]; then
exit 1
fi