From 18ccaf971f287b6ab7705013b333ddbd3f9ecae1 Mon Sep 17 00:00:00 2001 From: Mathew Polzin Date: Sun, 31 Jan 2021 17:03:50 -0800 Subject: [PATCH] tweaking cov output. --- cov_diff.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cov_diff.sh b/cov_diff.sh index 617ca11d2..161210fbf 100755 --- a/cov_diff.sh +++ b/cov_diff.sh @@ -1,6 +1,6 @@ #!/bin/bash -diff_cov_output="$(git diff ../codecov-main.txt ./codecov.txt | sed -n '/^[-=][^-=]/p' )" +diff_cov_output="$(git diff ../codecov-main.txt ./codecov.txt | sed -E -n '/^(---|\+\+\+|@@)/!p' | tail -n +3)" diff_cov_output="\`\`\`diff $diff_cov_output \`\`\`" diff_cov_output="${diff_cov_output//'%'/'%25'}" diff_cov_output="${diff_cov_output//$'\n'/'%0A'}"