1
0

Improve logging

This commit is contained in:
2023-03-19 17:59:56 +00:00
parent 60bc7238a8
commit e2fcc20f36

View File

@ -391,8 +391,12 @@ func (q System) scp(user, localPath, remotePath string, recursive bool) (err err
}
if recursive {
cmd := exec.Command("ssh", "-V")
log.Debug().Msgf("%v", cmd)
var output []byte
output, err = exec.Command("ssh", "-V").CombinedOutput()
output, err = cmd.CombinedOutput()
if err != nil {
return
}