From 9dc5da7dbd099a8f453bf613a4a9113b6ee92cc1 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Mon, 9 Sep 2019 16:40:12 -0600 Subject: [PATCH] net/net.sh: Add flag to skip build (#5853) automerge --- net/net.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/net/net.sh b/net/net.sh index f1e17e290..383ede554 100755 --- a/net/net.sh +++ b/net/net.sh @@ -76,6 +76,9 @@ Operate a configured testnet --no-deploy - Don't deploy new software, use the existing deployment + --no-build + - Don't build new software, deploy the + existing binaries sanity/start/update-specific options: @@ -125,6 +128,7 @@ maybeSkipLedgerVerify="" maybeDisableAirdrops="" buildProfile="--release" debugBuild=false +doBuild=true command=$1 [[ -n $command ]] || usage @@ -148,6 +152,9 @@ while [[ -n $1 ]]; do elif [[ $1 = --no-deploy ]]; then deployMethod=skip shift 1 + elif [[ $1 = --no-build ]]; then + doBuild=false + shift 1 elif [[ $1 = --skip-ledger-verify ]]; then maybeSkipLedgerVerify="$1" shift 1 @@ -618,7 +625,11 @@ prepare_deploy() { ) ;; local) - build + if $doBuild; then + build + else + echo "Build skipped due to --no-build" + fi ;; skip) ;;