Skip to content

Commit

Permalink
Add logging to upload (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
kke authored Aug 19, 2021
1 parent 869724d commit 2d1a6f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,10 @@ func (c *SSH) uploadLinux(src, dst string, opts ...exec.Option) error {
if err != nil {
return err
}
cmd := fmt.Sprintf("gzip -d | %s", teeCmd)

err = session.Start(fmt.Sprintf("gzip -d | %s", teeCmd))
log.Debugf("%s: executing: %s", c, cmd)
err = session.Start(cmd)
if err != nil {
return err
}
Expand Down

0 comments on commit 2d1a6f8

Please sign in to comment.