Skip to content

Commit

Permalink
Fix escape double quotes (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelbemartin authored Sep 16, 2020
1 parent 73983e9 commit ba27a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/teamwork.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ teamwork::add_comment() {
response=$(curl -X "POST" "$TEAMWORK_URI/projects/api/v1/tasks/$TEAMWORK_TASK_ID/comments.json" \
-u "$TEAMWORK_API_TOKEN"':' \
-H 'Content-Type: application/json; charset=utf-8' \
-d "{ \"comment\": { \"body\": \"$body\", \"notify\": \"\", \"content-type\": \"text\", \"isprivate\": false } }" )
-d "{ \"comment\": { \"body\": \"${body//\"/}\", \"notify\": \"\", \"content-type\": \"text\", \"isprivate\": false } }" )

echo "$response"
}
Expand Down

0 comments on commit ba27a7d

Please sign in to comment.