File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -702,13 +702,14 @@ check_invalidation_status() {
702
702
counter=0
703
703
echo " invalidating cache with ID $INVALIDATE_ID "
704
704
sleep 60
705
- invalidstatus =` aws cloudfront get-invalidation --distribution-id $AWS_CLOUD_FRONT_ID --id $INVALIDATE_ID | $JQ ' .Invalidation.Status' `
705
+ invalidatestatus =` aws cloudfront get-invalidation --distribution-id $AWS_CLOUD_FRONT_ID --id $INVALIDATE_ID | $JQ ' .Invalidation.Status' `
706
706
707
- while [[ $invalidstatus != * " Completed" * ]]
707
+ while [[ $invalidatestatus != * " Completed" * ]]
708
708
do
709
+ echo $invalidatestatus
709
710
echo " Waiting for 15 sec and try to check the invalidation status..."
710
711
sleep 15
711
- invalidstatus =` aws cloudfront get-invalidation --distribution-id $AWS_CLOUD_FRONT_ID --id $INVALIDATE_ID | $JQ ' .Invalidation.Status' `
712
+ invalidatestatus =` aws cloudfront get-invalidation --distribution-id $AWS_CLOUD_FRONT_ID --id $INVALIDATE_ID | $JQ ' .Invalidation.Status' `
712
713
counter=` expr $counter + 1`
713
714
if [[ $counter -gt $COUNTER_LIMIT ]] ; then
714
715
echo " Invalidation does not complete with in 180 seconds. Please check the GUI mode."
You can’t perform that action at this time.
0 commit comments