From 30700aefd420ce3388b6c65accfde8f8a6319207 Mon Sep 17 00:00:00 2001 From: John David Pressman Date: Sat, 8 Jun 2019 19:04:59 -0700 Subject: [PATCH] Try shell if syntax in makefile --- makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 3482fbf15..011c720d5 100644 --- a/makefile +++ b/makefile @@ -6,7 +6,9 @@ install-deps: build-deps: # Create opam dev switch locally for use with Ligo, add merlin/etc - scripts/setup_dev_switch.sh + if [ -n "`opam switch show | grep -P ".+/ligo"`" ]; + 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 # Install OCaml build dependencies for Ligo