silent command check
This commit is contained in:
parent
262defc3f5
commit
09f478dba0
@ -22,7 +22,6 @@ checktools() {
|
||||
# that needs to check that specific tools are present on the system
|
||||
# and can be found in the PATH
|
||||
var=$(echo $1 | tr '[:lower:]' '[:upper:]')
|
||||
echo -n "# Looking for $1... "
|
||||
local_var="$(which $1)"
|
||||
eval $var="$local_var"
|
||||
if [ -z "$local_var" ]
|
||||
@ -31,7 +30,6 @@ checktools() {
|
||||
NOTFOUND="$NOTFOUND$1 "
|
||||
DIE=1
|
||||
else
|
||||
echo "$local_var"
|
||||
FOUND="$FOUND$1 "
|
||||
fi
|
||||
unset local_var
|
||||
@ -42,10 +40,6 @@ do
|
||||
checktools "$tool"
|
||||
done
|
||||
|
||||
echo
|
||||
echo "# Found $FOUND"
|
||||
echo
|
||||
|
||||
if [ -n "$DIE" ]
|
||||
then
|
||||
echo "Some tools were not found, please check your installation" >&2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user