internal/build: show ppa upload process stdout on stdout (#24588)

This commit is contained in:
Martin Holst Swende 2022-03-25 15:06:29 +01:00 committed by GitHub
parent 6a44bf6826
commit 19b9cf714f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ func render(tpl *template.Template, outputFile string, outputPerm os.FileMode, x
// the form sftp://[user@]host[:port]. // the form sftp://[user@]host[:port].
func UploadSFTP(identityFile, host, dir string, files []string) error { func UploadSFTP(identityFile, host, dir string, files []string) error {
sftp := exec.Command("sftp") sftp := exec.Command("sftp")
sftp.Stdout = nil sftp.Stdout = os.Stdout
sftp.Stderr = os.Stderr sftp.Stderr = os.Stderr
if identityFile != "" { if identityFile != "" {
sftp.Args = append(sftp.Args, "-i", identityFile) sftp.Args = append(sftp.Args, "-i", identityFile)