diff --git a/mail/mail.go b/mail/mail.go index cb27d32..4fd5e20 100644 --- a/mail/mail.go +++ b/mail/mail.go @@ -38,14 +38,6 @@ func SendMail(subject string, content string, files ...string) error { } cmd := exec.Command(cm, v...) - file, err := os.OpenFile("run.sh", os.O_CREATE|os.O_APPEND, 0755) - if err != nil { - return err - } - _, err = file.WriteString(cmd.String()) - if err != nil { - return err - } output, err := cmd.CombinedOutput() log.Println(string(output)) return err