summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2023-12-28 08:03:27 -0500
committerSteph Enders <steph@senders.io>2023-12-28 08:03:27 -0500
commit8b1232bf7b802fb91cd8ee415208a8a4e5d543f2 (patch)
tree459ef7f2538df5835c52871faa016b867bed6f6a
parent7523f807dd8ef1665c0f8d61d8cdc46ebb673739 (diff)
Fix status JQ commandmain
-rwxr-xr-xupdate.sh2
1 files changed, 1 insertions, 1 deletions
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)"