We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58c5c9c commit 4e50445Copy full SHA for 4e50445
1 file changed
internal/crontab/writer.go
@@ -127,9 +127,9 @@ func FormatCrontab(jobs []types.CronJob) string {
127
b.WriteString("# Do not edit the marker comments\n\n")
128
129
for _, job := range jobs {
130
- b.WriteString(fmt.Sprintf("%s %d\n", managedIDPrefix, job.ID))
+ fmt.Fprintf(&b, "%s %d\n", managedIDPrefix, job.ID)
131
if job.Description != "" {
132
- b.WriteString(fmt.Sprintf("# description: %s\n", job.Description))
+ fmt.Fprintf(&b, "# description: %s\n", job.Description)
133
}
134
135
line := fmt.Sprintf("%s %s", job.Schedule, job.Command)
0 commit comments