Commit 92a48138 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>
(cherry picked from commit 278b85aabee8334b9b51a092cecaf553b1668c09)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f6a740ff
......@@ -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