Skip to content

Commit

Permalink
fix wrong ssh.fetch interface method implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
bxy4543 committed Jul 21, 2023
1 parent a6e54f6 commit 2938376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ssh/scp.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (c *Client) Fetch(host, src, dst string) error {
return err
}
defer created.Close()
_, err = io.Copy(rfp, created)
_, err = io.Copy(created, rfp)
return err
}

Expand Down

0 comments on commit 2938376

Please sign in to comment.