internal/build: exit sftp upload (#24590)

pull/24591/head
Martin Holst Swende 3 years ago committed by GitHub
parent d1c243f841
commit eb3ebceaa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      internal/build/util.go

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

Loading…
Cancel
Save