diff --git a/sh/scenarios/client.sh b/sh/scenarios/client.sh index 848c118..ffd2db5 100755 --- a/sh/scenarios/client.sh +++ b/sh/scenarios/client.sh @@ -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"