Skip to content

Commit 891081c

Browse files
display only if more than one
1 parent ef333b4 commit 891081c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

schedule/schedules.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ import (
1414

1515
func displayHeader(profile, command string, index, total int) {
1616
term.Print(platform.LineSeparator)
17-
header := fmt.Sprintf("Profile (or Group) %s: %s schedule %d/%d", profile, command, index, total)
17+
header := fmt.Sprintf("Profile (or Group) %s: %s schedule", profile, command)
18+
if total > 1 {
19+
header += fmt.Sprintf(" %d/%d", index, total)
20+
}
1821
term.Print(header)
1922
term.Print(platform.LineSeparator)
2023
term.Print(strings.Repeat("=", len(header)))

0 commit comments

Comments
 (0)