Fu Diwei 2025-04-17 21:44:40 +08:00
parent 44a6190e17
commit 55d7a05af8
1 changed files with 0 additions and 1 deletions

View File

@ -243,7 +243,6 @@ func writeFileWithSCP(sshCli *ssh.Client, path string, data []byte) error {
if err != nil {
return xerrors.Wrap(err, "failed to create scp client")
}
defer scpCli.Close()
reader := bytes.NewReader(data)
err = scpCli.CopyToRemote(reader, path, &scp.FileTransferOption{})