Skip to content

Commit

Permalink
Merge pull request #16 from asicsdigital/fix-error-in-script
Browse files Browse the repository at this point in the history
bugfix: command does not quotes around path list
  • Loading branch information
tyrantkhan authored Aug 4, 2019
2 parents b5468b2 + a0b672d commit a352b42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion 1.X/tests/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ file:
/opt/hermes/bin/invalidate-cloudfront-cache:
exists: true
mode: "0755"
size: 1271
size: 1269
owner: root
group: root
filetype: file
Expand Down

0 comments on commit a352b42

Please sign in to comment.