From e401a5c8f239355944cf8c34e86eefb5d98e32da Mon Sep 17 00:00:00 2001 From: Liam Horne Date: Sun, 2 May 2021 20:20:38 -0700 Subject: [PATCH] build: add set -e to various bash scripts that we want to error loudly (#718) * build: add set -e to various bash scripts that we want to error loudly * build: use sh and remove set -e for geth.sh --- ops/scripts/batches.sh | 3 +++ ops/scripts/dtl.sh | 3 +++ ops/scripts/geth.sh | 6 +++++- ops/scripts/relayer.sh | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ops/scripts/batches.sh b/ops/scripts/batches.sh index afb2eb10626b..09c77db93c5c 100755 --- a/ops/scripts/batches.sh +++ b/ops/scripts/batches.sh @@ -1,4 +1,7 @@ #!/bin/bash + +set -e + RETRIES=${RETRIES:-40} if [[ ! -z "$URL" ]]; then diff --git a/ops/scripts/dtl.sh b/ops/scripts/dtl.sh index d9407b7ca7bc..7b97b0fa89c8 100755 --- a/ops/scripts/dtl.sh +++ b/ops/scripts/dtl.sh @@ -1,4 +1,7 @@ #!/bin/bash + +set -e + RETRIES=${RETRIES:-60} if [[ ! -z "$URL" ]]; then diff --git a/ops/scripts/geth.sh b/ops/scripts/geth.sh index 1767c0ef386c..2022d892f55f 100755 --- a/ops/scripts/geth.sh +++ b/ops/scripts/geth.sh @@ -1,4 +1,8 @@ -#!/bin/bash +#!/bin/sh + +# FIXME: Cannot use set -e since bash is not installed in Dockerfile +# set -e + RETRIES=${RETRIES:-40} VERBOSITY=${VERBOSITY:-6} diff --git a/ops/scripts/relayer.sh b/ops/scripts/relayer.sh index cca456fd4aa5..fddd0f48f94d 100755 --- a/ops/scripts/relayer.sh +++ b/ops/scripts/relayer.sh @@ -1,4 +1,7 @@ #!/bin/bash + +set -e + RETRIES=${RETRIES:-60} if [[ ! -z "$URL" ]]; then