add newlines
parent
2a1ee51083
commit
c9c324242c
|
@ -30,14 +30,14 @@ func uploadTarball(tarballFilename string) error {
|
||||||
hostPath := path.Join("out/", tarballFilename)
|
hostPath := path.Join("out/", tarballFilename)
|
||||||
gcsDest := fmt.Sprintf("gs://%s", download.PreloadBucket)
|
gcsDest := fmt.Sprintf("gs://%s", download.PreloadBucket)
|
||||||
cmd := exec.Command("gsutil", "cp", hostPath, gcsDest)
|
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 {
|
if output, err := cmd.CombinedOutput(); err != nil {
|
||||||
return errors.Wrapf(err, "uploading %s to GCS bucket: %v\n%s", hostPath, err, string(output))
|
return errors.Wrapf(err, "uploading %s to GCS bucket: %v\n%s", hostPath, err, string(output))
|
||||||
}
|
}
|
||||||
// Make tarball public to all users
|
// Make tarball public to all users
|
||||||
gcsPath := fmt.Sprintf("%s/%s", gcsDest, tarballFilename)
|
gcsPath := fmt.Sprintf("%s/%s", gcsDest, tarballFilename)
|
||||||
cmd = exec.Command("gsutil", "acl", "ch", "-u", "AllUsers:R", gcsPath)
|
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 {
|
if output, err := cmd.CombinedOutput(); err != nil {
|
||||||
fmt.Printf(`Failed to update ACLs on this tarball in GCS. Please run
|
fmt.Printf(`Failed to update ACLs on this tarball in GCS. Please run
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue