From 8b1232bf7b802fb91cd8ee415208a8a4e5d543f2 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Thu, 28 Dec 2023 08:03:27 -0500 Subject: Fix status JQ command --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 977b96a..36ab5fb 100755 --- a/update.sh +++ b/update.sh @@ -50,7 +50,7 @@ EOF res=$(aws route53 change-resource-record-sets \ --hosted-zone-id $HOSTED_ZONE_ID \ --change-batch "file://$RECORD_CHANGE_JSON") - status=$(jq -r '.ChangeInfo.Status' $res) + status=$(echo "$res" | jq -r '.ChangeInfo.Status') if [ "$status" == "PENDING" ]; then echo "Change submitted. Overall is Pending! (This is expected)" -- cgit v1.2.3-54-g00ecf