Skip to content

Commit

Permalink
attempt to get code quotation around diff output.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Feb 1, 2021
1 parent c18cbb3 commit 82c1d67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cov_diff.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

diff_cov_output="$(diff ../codecov-main.txt ./codecov.txt)"
diff_cov_output="$(diff ../codecov-main.txt ./codecov.txt | sed -n '/^[-=][^-=]/p' )"
diff_cov_output="\`\`\`diff $diff_cov_output \`\`\`"
diff_cov_output="${diff_cov_output//'%'/'%25'}"
diff_cov_output="${diff_cov_output//$'\n'/'%0A'}"
diff_cov_output="${diff_cov_output//$'\r'/'%0D'}"
Expand Down

0 comments on commit 82c1d67

Please sign in to comment.