Skip to content

Commit

Permalink
Replace quotes with single quote
Browse files Browse the repository at this point in the history
  • Loading branch information
klamborowski committed Apr 15, 2021
1 parent f3bdbea commit 27bf517
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ echo "${blue}✉️ Comment:${cyan}"
echo "$jira_comment"
echo "${reset}"

escaped_jira_comment=$(echo "$jira_comment" | perl -pe 's/\n/\\n/g' | sed 's/.\{2\}$//')
escaped_jira_comment=$(echo "$jira_comment" | perl -pe 's/\n/\\n/g' | sed 's/"/'\''/' | sed 's/.\{2\}$//')


echo "${blue}✉️ Escaped comment:${cyan}"
echo "$escaped_jira_comment"
echo "${reset}"

create_comment_data()
{
Expand Down

0 comments on commit 27bf517

Please sign in to comment.