Skip to content

Commit

Permalink
improve comment detection in deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sophoah authored and mur-me committed Sep 10, 2024
1 parent 647d20b commit 952814a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function launch_localnet() {
# Read config for i-th node form config file
IFS=' ' read -r ip port mode bls_key shard node_config <<<"${line}"
args=("${base_args[@]}" --ip "${ip}" --port "${port}" --key "/tmp/${ip}-${port}.key" --db_dir "${ROOT}/db-${ip}-${port}" "--broadcast_invalid_tx=false")
if [[ -z "$ip" || -z "$port" || "$ip" == "#" ]]; then
if [[ -z "$ip" || -z "$port" || "${ip:0:1}" == "#" ]]; then
echo "skip empty line or node or comment"
continue
fi
Expand Down

0 comments on commit 952814a

Please sign in to comment.