Skip to content

Commit

Permalink
chore: Use jq to extract field (#8834)
Browse files Browse the repository at this point in the history
  • Loading branch information
lqiu96 authored and alicejli committed Nov 28, 2022
1 parent 898d174 commit 1ea3859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .cloud/helpers/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function getOutput() {

# Parse stdin and get the value associated with the given key.
function parseJson() {
python3 -c "import sys, json; print(json.load(sys.stdin)['$1'])"
jq ".$1" -r
}

# Example use: getModuleOutput java-redis redis_network
Expand Down

0 comments on commit 1ea3859

Please sign in to comment.