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
}
check() {
if ! $1 --version >/dev/null 2>&1
if ! $1 --version >/dev/null 2>&1 && ! $1 -version >/dev/null 2>&1
then
echo "$1 not found"
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