Skip to content

Commit

Permalink
Fix double quotes that were breaking message body
Browse files Browse the repository at this point in the history
"type" key was using the right double quotation mark (AKA 0x201D) instead of the standard double quotes. Could not call parse the string as JSON because of it.
  • Loading branch information
josepfrantic authored Mar 29, 2017
1 parent 8e63d51 commit 3a145cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ rm -rf /tmp/awscli-bundle/

while IFS='=' read -r name value ; do
if [[ $name == *'_DATABASE_URL'* || $name == *'JAWSDB_URL' ]]; then
$AWS_CLI_INSTALL_DIR/bin/aws sqs send-message --region $SQS_REGION --queue-url $SQS_QUEUE_URL --message-body "{\type\: \"database\", \"app\": \"$HEROKU_APP_NAME\", \"db\": \"$name\", \"url\": \"${!name}\"}"
$AWS_CLI_INSTALL_DIR/bin/aws sqs send-message --region $SQS_REGION --queue-url $SQS_QUEUE_URL --message-body "{\"type\": \"database\", \"app\": \"$HEROKU_APP_NAME\", \"db\": \"$name\", \"url\": \"${!name}\"}"
fi
done < <(env)

0 comments on commit 3a145cc

Please sign in to comment.