Treat any SCP output as an error

这个提交包含在:
2023-02-15 11:45:25 +00:00
父节点 9910921e30
当前提交 3d6961dfd7

查看文件

@@ -372,7 +372,7 @@ func (q System) scp(user, localPath, remotePath string, recursive bool) (err err
cmd := exec.Command("scp", args...) cmd := exec.Command("scp", args...)
output, err := cmd.CombinedOutput() output, err := cmd.CombinedOutput()
if err != nil { if err != nil || string(output) != "" {
return errors.New(string(output)) return errors.New(string(output))
} }