mirror of
https://github.com/justinwoo/easy-dhall-nix.git
synced 2024-11-23 03:29:42 +01:00
test(*): run --version on each command
Simple test to see whether we can execute the commands.
This commit is contained in:
parent
e555e2201c
commit
4d48badd72
1 changed files with 5 additions and 5 deletions
10
test.nix
10
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue