internal/build: exit sftp upload (#24590)

This commit is contained in:
Martin Holst Swende 2022-03-25 16:46:31 +01:00 committed by GitHub
parent d1c243f841
commit eb3ebceaa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,7 @@ func UploadSFTP(identityFile, host, dir string, files []string) error {
for _, f := range files {
fmt.Fprintln(in, "put", f, path.Join(dir, filepath.Base(f)))
}
fmt.Fprintln(in, "exit")
// Avoid travis timout after 10m of inactivity by printing something
// every 8 minutes.
done := make(chan bool)