From f70ffb8e6b9f0f808b93df1f6c46ca4b93e56752 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 2 Oct 2018 13:38:55 +0200 Subject: [PATCH] default to stable versions, make latest optional --- start_ocean.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/start_ocean.sh b/start_ocean.sh index e21eea9..77b3978 100755 --- a/start_ocean.sh +++ b/start_ocean.sh @@ -1,6 +1,5 @@ #!/usr/bin/env bash -export OCEAN_VERSION=latest # Must be set to true for the first run, change it to "false" to avoid migrating the smart contracts on each run. export DEPLOY_CONTRACTS="true" # Ganache specific option, these two options have no effect when not running ganache-cli @@ -10,6 +9,14 @@ export REUSE_DATABASE="false" export KEEPER_NETWORK_NAME="ganache" export ARTIFACTS_FOLDER=~/.ocean/keeper-contracts/artifacts +# default to `stable` versions of all components +# unless `--latest` argument is given +if [ "$1" == "--latest" ]; then + export OCEAN_VERSION=latest +else + export OCEAN_VERSION=stable +fi + if [ "$1" == "--no-pleuston" ] then export REUSE_DATABASE="true"