Skip to content

Commit

Permalink
fix: shell dry-run output should be runable
Browse files Browse the repository at this point in the history
  • Loading branch information
lalyos authored Jan 18, 2025
1 parent 11c7d9c commit 409735f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/runner/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (s Shell) DryRun(ctx context.Context, w io.Writer) {
var b bytes.Buffer

_, _ = b.WriteString(fmt.Sprintf("#!%s\n\n", s.ProgramPath()))
_, _ = b.WriteString(fmt.Sprintf("// run in %q\n\n", s.Dir))
_, _ = b.WriteString(fmt.Sprintf("# run in %q\n\n", s.Dir))
_, _ = b.WriteString(prepareScriptFromCommands(s.Cmds, s.ShellType()))

_, err := w.Write(b.Bytes())
Expand Down

0 comments on commit 409735f

Please sign in to comment.