From c30244a4e4c3ffe562acec66094d58fb17cfc81e Mon Sep 17 00:00:00 2001 From: John David Pressman Date: Sat, 8 Jun 2019 20:11:29 -0700 Subject: [PATCH] Add a second test conditional to stop double-execution of make scripts --- makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 011c720d5..3587aa3ea 100644 --- a/makefile +++ b/makefile @@ -10,7 +10,9 @@ build-deps: then exit; else scripts/setup_dev_switch.sh; fi # Set up the local ligo opam repository so that it can be built - scripts/setup_ligo_opam_repository.sh + if [ -n "`opam repo list --safe | grep -P "ligo-opam-repository"`" ]; + then exit; else scripts/setup_ligo_opam_repository.sh; + fi # Install OCaml build dependencies for Ligo scripts/install_ligo_with_dependencies.sh