Commit c3b61142 authored by szh's avatar szh

update backup

parent e3a0027f
......@@ -211,7 +211,7 @@ func deleteBackup() error {
if _,err := os.Stat(backupPath);err != nil {
if os.IsNotExist(err) {
tlog.Error("backup file not exists","err",backupPath)
return errors.New("backup file not exists")
return nil
}
}
remove := exec.Command("rm","-rf",backupPath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment