mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-10 22:49:51 +00:00
fix: #615
This commit is contained in:
parent
44a6190e17
commit
55d7a05af8
@ -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{})
|
||||
|
Loading…
x
Reference in New Issue
Block a user