From b87950b65cf8a908ba71334b171b46b4fe4978ab Mon Sep 17 00:00:00 2001 From: 0xAN Date: Thu, 7 Nov 2024 21:57:02 +0800 Subject: [PATCH] Makefile: replace any `ttl-num-blocks` value instead of only replace if the value is `5` --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index daa2075f4f..64893a3c1a 100644 --- a/Makefile +++ b/Makefile @@ -309,11 +309,11 @@ configure-v3: 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); \ + sed -i '' "s/ttl-num-blocks = .*/ttl-num-blocks = 12/" $(CONFIG_FILE); \ else \ 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); \ + sed -i "s/ttl-num-blocks = .*/ttl-num-blocks = 12/" $(CONFIG_FILE); \ fi .PHONY: configure-v3 @@ -324,4 +324,4 @@ debug-version: @echo "GIT_TAG: $(GIT_TAG)" @echo "VERSION: $(VERSION)" .PHONY: debug-version - \ No newline at end of file +