Skip to content

Commit

Permalink
fix: refix sd-local display bug (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakanechi authored Nov 20, 2023
1 parent fcdaeeb commit 947fa5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ func doRunSetupCommand(emitter screwdriver.Emitter, f *os.File, r io.Reader, set

t, err = readln(reader)
for err == nil {
t = strings.TrimLeft(t, "# ")
t = strings.TrimLeft(t, "$ ")
echoCmd := reEcho.FindStringSubmatch(t)
if len(echoCmd) != 0 {
_, werr := fmt.Fprintln(emitter, t)
Expand Down Expand Up @@ -287,7 +289,7 @@ func Run(path string, env []string, emitter screwdriver.Emitter, build screwdriv
"EXITCODE=$?; " +
exportEnvCmd +
"echo $SD_STEP_ID $EXITCODE; }", //mv newfile to file
"trap finish ABRT EXIT;\n\n",
"trap finish ABRT EXIT;\necho ;\n",
}

setupReader := bufio.NewReader(f)
Expand Down

0 comments on commit 947fa5f

Please sign in to comment.