Add titles to config file and sort list by title

This commit is contained in:
bel
2020-03-15 17:05:29 +00:00
parent 061292386c
commit 0ccdee8bd1
6 changed files with 12 additions and 9 deletions

View File

@@ -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]