From 389bbad65f88d1c8374999e1bde6bc8ef567c59a Mon Sep 17 00:00:00 2001 From: xing Date: Tue, 11 Jul 2023 14:59:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail/mail.go | 8 -------- 1 file changed, 8 deletions(-) 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