Skip to content

Commit

Permalink
fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHX authored Jan 29, 2025
1 parent 20c388a commit 0928f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runner/run_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,14 +522,14 @@ func (rc *RunContext) UpdateExtraPath(ctx context.Context, githubEnvPath string)
s := bufio.NewScanner(reader)
firstLine := false
for s.Scan() {
line := s.Text()
if firstLine {
firstLine = false
// skip utf8 bom, powershell 5 legacy uses it for utf8
if len(line) >= 3 && line[0] == 239 && line[1] == 187 && line[2] == 191 {
line = line[3:]
}
}
line := s.Text()
if len(line) > 0 {
rc.addPath(ctx, line)
}
Expand Down

0 comments on commit 0928f4b

Please sign in to comment.