add newlines

pull/7262/head
Priya Wadhwa 2020-03-26 10:37:29 -07:00
parent 2a1ee51083
commit c9c324242c
1 changed files with 2 additions and 2 deletions

View File

@ -30,14 +30,14 @@ func uploadTarball(tarballFilename string) error {
hostPath := path.Join("out/", tarballFilename)
gcsDest := fmt.Sprintf("gs://%s", download.PreloadBucket)
cmd := exec.Command("gsutil", "cp", hostPath, gcsDest)
fmt.Printf("Running: %v", cmd.Args)
fmt.Printf("Running: %v\n", cmd.Args)
if output, err := cmd.CombinedOutput(); err != nil {
return errors.Wrapf(err, "uploading %s to GCS bucket: %v\n%s", hostPath, err, string(output))
}
// Make tarball public to all users
gcsPath := fmt.Sprintf("%s/%s", gcsDest, tarballFilename)
cmd = exec.Command("gsutil", "acl", "ch", "-u", "AllUsers:R", gcsPath)
fmt.Printf("Running: %v", cmd.Args)
fmt.Printf("Running: %v\n", cmd.Args)
if output, err := cmd.CombinedOutput(); err != nil {
fmt.Printf(`Failed to update ACLs on this tarball in GCS. Please run