Skip to content

Commit 02eba7b

Browse files
authored
chore: Use jq to extract field (#8834)
1 parent a70dbea commit 02eba7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.cloud/helpers/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function getOutput() {
4040

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

4646
# Example use: getModuleOutput java-redis redis_network

0 commit comments

Comments
 (0)