Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / cmd / getgo / upload.bash
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