From 71aa8b2aee1a12fe51029a3856f5b9b8da1d0b9f Mon Sep 17 00:00:00 2001 From: vgorkavenko Date: Wed, 14 Aug 2024 15:49:12 +0200 Subject: [PATCH] fix: sed for macOS in Obol config --- ethd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethd b/ethd index 876c198a..f25efb22 100755 --- a/ethd +++ b/ethd @@ -3524,7 +3524,8 @@ config() { __obol_prom_remote_token=$(whiptail --title "Obol prometheus" --inputbox "Put Obol Prometheus remote write token \ (right-click to paste)" 10 60 3>&1 1>&2 2>&3) cat ./prometheus/obol-prom.yml > ./prometheus/custom-prom.yml - sed -i'' "s| credentials: OBOL_PROM_REMOTE_WRITE_TOKEN| credentials: ${__obol_prom_remote_token}|" ./prometheus/custom-prom.yml + sed -i'.original' "s| credentials: OBOL_PROM_REMOTE_WRITE_TOKEN| credentials: ${__obol_prom_remote_token}|" ./prometheus/custom-prom.yml + rm -f ./prometheus/custom-prom.yml.original fi COMPOSE_FILE="${CONSENSUS_CLIENT}"