From 7ba7f3be117e514a5ee9d080a21d817e340d47e8 Mon Sep 17 00:00:00 2001 From: bombermine <84911882+bombermine3@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:43:46 +0300 Subject: [PATCH] fix: replace bash syntax with sh in configure-v3 (#4025) ## Overview Since sh is the default shell in the Makefile, running configure-v3 resulted in the error: `/bin/sh: 2: [[: not found`. This fix modifies the syntax to be compatible with sh, allowing the script to run successfully without errors. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index daa2075f4f..dd246452e0 100644 --- a/Makefile +++ b/Makefile @@ -305,8 +305,8 @@ CONFIG_FILE ?= ${HOME}/.celestia-app/config/config.toml SEND_RECV_RATE ?= 10485760 # 10 MiB configure-v3: - @echo "Using config file at: $(CONFIG_FILE)"; \ - if [[ "$$(uname)" == "Darwin" ]]; then \ + @echo "Using config file at: $(CONFIG_FILE)" + @if [ "$$(uname)" = "Darwin" ]; then \ sed -i '' "s/^recv_rate = .*/recv_rate = $(SEND_RECV_RATE)/" $(CONFIG_FILE); \ sed -i '' "s/^send_rate = .*/send_rate = $(SEND_RECV_RATE)/" $(CONFIG_FILE); \ sed -i '' "s/ttl-num-blocks = 5/ttl-num-blocks = 12/" $(CONFIG_FILE); \ @@ -324,4 +324,4 @@ debug-version: @echo "GIT_TAG: $(GIT_TAG)" @echo "VERSION: $(VERSION)" .PHONY: debug-version - \ No newline at end of file +