github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/cmd/getgo/upload.bash (about)

     1  #!/bin/bash
     2  
     3  # Copyright 2017 The Go Authors. All rights reserved.
     4  # Use of this source code is governed by a BSD-style
     5  # license that can be found in the LICENSE file.
     6  
     7  if ! command -v gsutil 2>&1 > /dev/null; then
     8    echo "Install gsutil:"
     9    echo
    10    echo "   https://cloud.google.com/storage/docs/gsutil_install#sdk-install"
    11  fi
    12  
    13  if [ ! -d build ]; then
    14    echo "Run make.bash first"
    15  fi
    16  
    17  set -e -o -x
    18  
    19  gsutil -m cp -a public-read build/* gs://golang/getgo