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 () {
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue