Skip to content

Commit

Permalink
Fix jq commands in create channel tutorial (#2662)
Browse files Browse the repository at this point in the history
Signed-off-by: Nikhil Gupta <[email protected]>
  • Loading branch information
nikhil550 authored Jun 9, 2021
1 parent 8851da3 commit 4cb453e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/create_channel/create_channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ We can now start using the `configtxlator` tool to start working with the channe
```
configtxlator proto_decode --input config_block.pb --type common.Block --output config_block.json
jq .data.data[0].payload.data.config config_block.json > config.json
jq '.data.data[0].payload.data.config' config_block.json > config.json
```
These commands convert the channel configuration block into a streamlined JSON, `config.json`, that will serve as the baseline for our update. Because we don't want to edit this file directly, we will make a copy that we can edit. We will use the original channel config in a future step.
Expand Down Expand Up @@ -331,7 +331,7 @@ cd channel-artifacts
You can then decode and copy the configuration block.
```
configtxlator proto_decode --input config_block.pb --type common.Block --output config_block.json
jq .data.data[0].payload.data.config config_block.json > config.json
jq '.data.data[0].payload.data.config' config_block.json > config.json
cp config.json config_copy.json
```
Expand Down

0 comments on commit 4cb453e

Please sign in to comment.