Skip to content

Commit

Permalink
Fix bash script array quoting (#697)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Enhanced argument handling in various scripts to ensure correct
processing of command-line inputs, particularly those with spaces or
special characters.

- **Chores**
- Minor script modifications across multiple files for improved
robustness in argument parsing without altering overall functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
sergekh2 authored Aug 9, 2024
1 parent 2261458 commit 0924184
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion core/env/alpha/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -euo pipefail
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")"

go run ../../river_node/main.go --config ../common/config.yaml --config config.yaml $@
go run ../../river_node/main.go --config ../common/config.yaml --config config.yaml "$@"
2 changes: 1 addition & 1 deletion core/env/gamma/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -euo pipefail
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")"

go run ../../river_node/main.go --config ../common/config.yaml --config config.yaml $@
go run ../../river_node/main.go --config ../common/config.yaml --config config.yaml "$@"
2 changes: 1 addition & 1 deletion core/env/omega/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -euo pipefail
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")"

go run ../../river_node/main.go --config ../common/config.yaml --config config.yaml $@
go run ../../river_node/main.go --config ../common/config.yaml --config config.yaml "$@"
2 changes: 1 addition & 1 deletion core/scripts/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ echo " (currently need to run with --disable_entitlements for tests to pass)"
echo ""
echo ""

./start_node.sh $@
./start_node.sh "$@"
2 changes: 1 addition & 1 deletion core/scripts/launch_multi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ echo "!!!Multi Node!!!"
echo ""
echo ""

./start_node_multi.sh $@
./start_node_multi.sh "$@"
2 changes: 1 addition & 1 deletion core/scripts/start_node.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -ue
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")"

../node/run_single.sh $@
../node/run_single.sh "$@"
2 changes: 1 addition & 1 deletion core/scripts/start_node_multi.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -ue
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")"

../node/run_multi.sh $@
../node/run_multi.sh "$@"
2 changes: 1 addition & 1 deletion packages/stress/scripts/gamma_chat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ export RIVER_ENV="${RIVER_ENV:-gamma}"
export STRESS_MODE="${STRESS_MODE:-chat}"
export SESSION_ID="${SESSION_ID:-$(uuidgen)}"

./scripts/start.sh $@
./scripts/start.sh "$@"
2 changes: 1 addition & 1 deletion packages/stress/scripts/localhost_chat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ export NODE_TLS_REJECT_UNAUTHORIZED=0 # allow unsigned against localhost
# fund the root wallet
cast rpc -r $BASE_CHAIN_RPC_URL anvil_setBalance $WALLET_ADDRESS 10000000000000000000 > /dev/null

./scripts/start.sh $@
./scripts/start.sh "$@"

0 comments on commit 0924184

Please sign in to comment.