Use hopefully valid syntax with test if conditional

This commit is contained in:
John David Pressman 2019-06-08 21:20:33 -07:00
parent 77b743f0e1
commit 540bf1d550

View File

@ -23,6 +23,7 @@ build: build-deps
.ONESHELL: .ONESHELL:
test: build test: build
eval $(opam env) eval $(opam env)
if [ ! dune build @ligo-test ] run_outcome=`dune build @ligo-test`
then echo "If you get a error message that dune can't be found/isn't in your path, run 'eval $(opam env)' and this command will work."; if [ ! -n $run_outcome ]
then echo "Run 'eval $(opam env)' and this command will work.";
fi fi