Commit 278b85aa authored by Geoffrey Métais's avatar Geoffrey Métais Committed by Jean-Baptiste Kempf

Check tools with '-version' too

Some tools, like ant, have -version arg and not --version
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3375a555
...@@ -44,7 +44,7 @@ fi ...@@ -44,7 +44,7 @@ fi
} }
check() { check() {
if ! $1 --version >/dev/null 2>&1 if ! $1 --version >/dev/null 2>&1 && ! $1 -version >/dev/null 2>&1
then then
echo "$1 not found" echo "$1 not found"
NEEDED="$NEEDED .$1" NEEDED="$NEEDED .$1"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment