From 4d48badd725b67792a82858756fc213c1f67c17b Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 6 Nov 2020 11:52:42 +0100 Subject: [PATCH] test(*): run --version on each command Simple test to see whether we can execute the commands. --- test.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test.nix b/test.nix index 02e0cf4..b408f6f 100644 --- a/test.nix +++ b/test.nix @@ -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 }