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

View file

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