Skip to content

Commit 4be45b6

Browse files
committed
Fix validation of coverage file
1 parent c88f2a7 commit 4be45b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/leeway/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ func (p *Package) buildGo(buildctx *buildContext, wd, result string) (err error)
948948

949949
if !cfg.DontTest && !buildctx.DontTest {
950950
commands = append(commands, [][]string{
951-
{"sh", "-c", fmt.Sprintf(`[ -f "%v" ] && cp -f %v %v`, codecovComponentName(p.FullName()), codecovComponentName(p.FullName()), buildctx.buildOptions.CoverageOutputPath)},
951+
{"sh", "-c", fmt.Sprintf(`if [ -f "%v" ]; then cp -f %v %v; fi`, codecovComponentName(p.FullName()), codecovComponentName(p.FullName()), buildctx.buildOptions.CoverageOutputPath)},
952952
}...)
953953
}
954954

0 commit comments

Comments
 (0)