From 540bf1d550350f106604e947cf4bde7920c5a106 Mon Sep 17 00:00:00 2001 From: John David Pressman Date: Sat, 8 Jun 2019 21:20:33 -0700 Subject: [PATCH] Use hopefully valid syntax with test if conditional --- makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index f7226602a..7b3bc00e1 100644 --- a/makefile +++ b/makefile @@ -23,6 +23,7 @@ build: build-deps .ONESHELL: test: build eval $(opam env) - if [ ! 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."; + run_outcome=`dune build @ligo-test` + if [ ! -n $run_outcome ] + then echo "Run 'eval $(opam env)' and this command will work."; fi