From da4195ed69a707d9a4a79557e1b0dbb46c99993c Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Thu, 16 Jan 2020 12:44:51 -0500 Subject: [PATCH] Typo jason -> json Signed-off-by: Thanh Ha Change-Id: I7f48f94726e2c4efd8021dc6b0aede2f5f67da51 --- shell/job-cost.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/job-cost.sh b/shell/job-cost.sh index 6493a6ef..5bd61bee 100644 --- a/shell/job-cost.sh +++ b/shell/job-cost.sh @@ -47,10 +47,10 @@ instance_type=$(curl -s http://169.254.169.254/latest/meta-data/instance-type) echo "INFO: Retrieving Pricing Info for: $instance_type" url="https://pricing.vexxhost.net/v1/pricing/$instance_type/cost?seconds=$uptime" -jason_block=$(curl -s "$url") +json_block=$(curl -s "$url") -cost=$(jq .cost <<< "$jason_block") -resource=$(jq .resource <<< "$jason_block" | tr -d '"') +cost=$(jq .cost <<< "$json_block") +resource=$(jq .resource <<< "$json_block" | tr -d '"') # Archive the cost date mkdir -p "$WORKSPACE/archives/cost" -- 2.16.6