mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-07 00:46:53 +01:00
22 lines
394 B
Bash
Executable File
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
|