From eb3ebceaa112dc62bbe5751e721c1d6c90bc50fb Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Fri, 25 Mar 2022 16:46:31 +0100 Subject: [PATCH] internal/build: exit sftp upload (#24590) --- internal/build/util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/build/util.go b/internal/build/util.go index f2e03819b32c..34cd6d454413 100644 --- a/internal/build/util.go +++ b/internal/build/util.go @@ -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)