Skip to content

Commit 9e5fd8d

Browse files
committed
remove current path on lint file.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 3614317 commit 9e5fd8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

coverage.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ generate_lint_report() {
9292
output "Go Lint report for ${pkg}"
9393
golint ${pkg} | tee -a ${lint_report}
9494
done
95+
96+
# fix path error
97+
root_path=${PWD//\//\\/}
98+
sed -i"" "s/${root_path}\(\/\)*//g" ${lint_report}
9599
}
96100

97101
generate_vet_report() {

0 commit comments

Comments
 (0)