mirror of
https://github.com/justinwoo/easy-dhall-nix.git
synced 2024-11-16 08:09:42 +01:00
de2b7839ae
apparently this is not yet merged into dhall itself
21 lines
312 B
Bash
Executable file
21 lines
312 B
Bash
Executable file
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash
|
|
|
|
ERRORS=0;
|
|
|
|
function test_exe () {
|
|
EXE=$1;
|
|
LOCATION=$(command -v "$EXE");
|
|
if [ -x "$LOCATION" ]; then
|
|
echo "found $EXE";
|
|
else
|
|
echo "didnt find $EXE";
|
|
ERRORS=1;
|
|
fi
|
|
}
|
|
|
|
test_exe dhall;
|
|
test_exe dhall-to-json;
|
|
test_exe dhall-to-bash;
|
|
|
|
exit $ERRORS;
|