Add titles to config file and sort list by title
This commit is contained in:
@@ -46,7 +46,7 @@ func newBashJob(schedule, sh string, title ...string) (*Job, error) {
|
||||
Raw: sh,
|
||||
Runner: Bash,
|
||||
}
|
||||
if len(title) == 0 {
|
||||
if len(title) == 0 || len(title[0]) == 0 {
|
||||
j.Title = j.Name
|
||||
} else {
|
||||
j.Title = title[0]
|
||||
|
||||
Reference in New Issue
Block a user