silent command check

This commit is contained in:
Vincent Riquer 2012-02-10 09:13:30 +01:00
parent 262defc3f5
commit 09f478dba0

View File

@ -22,7 +22,6 @@ checktools() {
# that needs to check that specific tools are present on the system # that needs to check that specific tools are present on the system
# and can be found in the PATH # and can be found in the PATH
var=$(echo $1 | tr '[:lower:]' '[:upper:]') var=$(echo $1 | tr '[:lower:]' '[:upper:]')
echo -n "# Looking for $1... "
local_var="$(which $1)" local_var="$(which $1)"
eval $var="$local_var" eval $var="$local_var"
if [ -z "$local_var" ] if [ -z "$local_var" ]
@ -31,7 +30,6 @@ checktools() {
NOTFOUND="$NOTFOUND$1 " NOTFOUND="$NOTFOUND$1 "
DIE=1 DIE=1
else else
echo "$local_var"
FOUND="$FOUND$1 " FOUND="$FOUND$1 "
fi fi
unset local_var unset local_var
@ -42,10 +40,6 @@ do
checktools "$tool" checktools "$tool"
done done
echo
echo "# Found $FOUND"
echo
if [ -n "$DIE" ] if [ -n "$DIE" ]
then then
echo "Some tools were not found, please check your installation" >&2 echo "Some tools were not found, please check your installation" >&2