From c46ce972d2d1f3e19201bcaba2448324bd5965aa Mon Sep 17 00:00:00 2001 From: Snezhkko Date: Thu, 14 Aug 2025 11:47:11 +0300 Subject: [PATCH] reth-entrypoint: use safe parameter expansion to prevent set -u unbound variable errors --- reth/reth-entrypoint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reth/reth-entrypoint b/reth/reth-entrypoint index bf1015d1..88cc4ae5 100755 --- a/reth/reth-entrypoint +++ b/reth/reth-entrypoint @@ -12,13 +12,13 @@ P2P_PORT="${P2P_PORT:-30303}" ADDITIONAL_ARGS="" NODE_TYPE="${NODE_TYPE:-vanilla}" -if [[ -z "$RETH_CHAIN" ]]; then +if [[ -z "${RETH_CHAIN:-}" ]]; then echo "expected RETH_CHAIN to be set" 1>&2 exit 1 fi # Add Flashblocks support for base mode -if [[ "$NODE_TYPE" == "base" && -n "$RETH_FB_WEBSOCKET_URL" ]]; then +if [[ "$NODE_TYPE" == "base" && -n "${RETH_FB_WEBSOCKET_URL:-}" ]]; then ADDITIONAL_ARGS="--websocket-url=$RETH_FB_WEBSOCKET_URL" echo "Enabling Flashblocks support with endpoint: $RETH_FB_WEBSOCKET_URL" fi