test(*): run --version on each command

Simple test to see whether we can execute the commands.
This commit is contained in:
Profpatsch 2020-11-06 11:52:42 +01:00
parent e555e2201c
commit 4d48badd72
1 changed files with 5 additions and 5 deletions

View File

@ -16,12 +16,12 @@ let
test_exe () { test_exe () {
EXE=$1; EXE=$1;
LOCATION=$(command -v "$EXE"); echo "$EXE --version:"
if [ -x "$LOCATION" ]; then if $EXE --version; then
echo "found $EXE"; return 0
else else
echo "didnt find $EXE"; echo "$EXE --version failed!"
ERRORS=1; ERRORS=1
fi fi
} }