Update Example of Parsing a Manifest to Use Only `jq` (#12894)

* Update manifest.mdx

* Remove extra space in split function

---------

Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
pull/12978/head
Estelle Poulin 2 years ago committed by GitHub
parent 4444623a16
commit 47d8df33e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -201,7 +201,7 @@ build.
#!/bin/bash
AMI_ID=$(jq -r '.builds[-1].artifact_id' manifest.json | cut -d ":" -f2)
AMI_ID=$(jq -r '.builds[-1].artifact_id | split(":") | .[1]' manifest.json)
echo $AMI_ID
```

Loading…
Cancel
Save