Skip to content

Commit

Permalink
fix: replace bash syntax with sh in configure-v3 (#4025)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
bombermine3 authored Nov 7, 2024
1 parent 5d6c695 commit 7ba7f3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
Expand All @@ -324,4 +324,4 @@ debug-version:
@echo "GIT_TAG: $(GIT_TAG)"
@echo "VERSION: $(VERSION)"
.PHONY: debug-version


0 comments on commit 7ba7f3b

Please sign in to comment.