diff --git a/backup.go b/backup.go index 4360ad6..dd87e83 100644 --- a/backup.go +++ b/backup.go @@ -26,6 +26,7 @@ func main() { email = new(Email) email.startTime = time.Now() + email.items = make([]string, 0) err := cfg.Load() if err != nil { @@ -41,6 +42,7 @@ func main() { if len(email.items) > 0 { SendMail(cfg.Email.smtpHost, cfg.Email.fromEmail, "Autobackup report", fmt.Sprintf("%v", email.items), cfg.Email.toEmail) + log.Printf("Sending summary email\r\n%v", email.items) } } diff --git a/version.go b/version.go index 99d5368..3481b5b 100644 --- a/version.go +++ b/version.go @@ -1,6 +1,6 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "9594fd7" -var buildstamp = "2022-06-17_14:11:08" -var commits = "41" -var version = "9594fd7-b41 - 2022-06-17_14:11:08" +var githash = "7c309b8" +var buildstamp = "2022-06-19_03:58:59" +var commits = "42" +var version = "7c309b8-b42 - 2022-06-19_03:58:59"