diff options
author | Steph Enders <steph@senders.io> | 2023-12-28 08:03:27 -0500 |
---|---|---|
committer | Steph Enders <steph@senders.io> | 2023-12-28 08:03:27 -0500 |
commit | 8b1232bf7b802fb91cd8ee415208a8a4e5d543f2 (patch) | |
tree | 459ef7f2538df5835c52871faa016b867bed6f6a | |
parent | 7523f807dd8ef1665c0f8d61d8cdc46ebb673739 (diff) |
Fix status JQ commandmain
-rwxr-xr-x | update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)" |