From 40f43fd7c836696edb9e63c1d7cf20e9562ff738 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Mon, 25 Apr 2016 15:21:47 +0200 Subject: [PATCH] Add a SKIP_BUILD option to the demo scripts --- scripts/irs-demo.sh | 2 +- scripts/trader-demo.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/irs-demo.sh b/scripts/irs-demo.sh index 47fcec9584..0774190608 100755 --- a/scripts/irs-demo.sh +++ b/scripts/irs-demo.sh @@ -7,7 +7,7 @@ if [ ! -e ./gradlew ]; then exit 1 fi -if [ ! -d build/install/r3prototyping ]; then +if [ ! -d build/install/r3prototyping ] && [[ "$SKIP_INSTALL" == "" ]]; then ./gradlew installDist fi diff --git a/scripts/trader-demo.sh b/scripts/trader-demo.sh index d606c71547..0f52b07e80 100755 --- a/scripts/trader-demo.sh +++ b/scripts/trader-demo.sh @@ -7,7 +7,9 @@ if [ ! -e ./gradlew ]; then exit 1 fi -./gradlew installDist +if [[ "$SKIP_INSTALL" == "" ]]; then + ./gradlew installDist +fi if [[ "$mode" == "buyer" ]]; then if [ ! -d buyer ]; then