Skip to content

Commit

Permalink
Parse chainspec output correctly regardless of the ordering of sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Chabowski committed Aug 22, 2024
1 parent e8dc469 commit 422edb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sh/scenarios/client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1312,8 +1312,8 @@ function get_chainspec_from_rpc() {
OUTPUT=$($(get_path_to_client) get-chainspec \
--node-address "$(get_node_address_rpc)" \
-vv \
| sed -n '/\[protocol\]/,$p' \
| sed '/FAUCET/Q')
| awk '/\[.+\]/{flag=1} flag' \
| awk '/FAUCET/{exit} {print}')

# Check non-empty
check_client_responded "$OUTPUT"
Expand Down

0 comments on commit 422edb8

Please sign in to comment.