This commit is contained in:
xing 2023-07-11 14:59:39 +08:00
parent 395280a363
commit 389bbad65f

View File

@ -38,14 +38,6 @@ func SendMail(subject string, content string, files ...string) error {
} }
cmd := exec.Command(cm, v...) 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() output, err := cmd.CombinedOutput()
log.Println(string(output)) log.Println(string(output))
return err return err