Skip to content

Commit

Permalink
bugfix: command does not quotes around path list
Browse files Browse the repository at this point in the history
  • Loading branch information
Haris Khan committed Jul 23, 2019
1 parent b5468b2 commit 183acf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1.X/scripts/invalidate-cloudfront-cache
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set -o pipefail

if [[ "$CLOUDFRONT_ID" ]]; then
echo "triggering cloudfront cache invalidation"
COMMAND="aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_ID --paths '$1'"
COMMAND="aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_ID --paths $1"
echo $COMMAND
RETVAL=$(eval $COMMAND)
echo $RETVAL | jq .
Expand Down

0 comments on commit 183acf6

Please sign in to comment.