diff options
Diffstat (limited to 'pull-toolchain.sh')
| -rwxr-xr-x | pull-toolchain.sh | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/pull-toolchain.sh b/pull-toolchain.sh index f5a19e7d7..87350ff53 100755 --- a/pull-toolchain.sh +++ b/pull-toolchain.sh @@ -1,16 +1,16 @@ -#!/bin/sh -# Retrieve the latest Go toolchain. -# -set -eu -cd "$(dirname "$0")" - -read -r go_branch <go.toolchain.branch -upstream=$(git ls-remote https://github.com/tailscale/go "$go_branch" | awk '{print $1}') -current=$(cat go.toolchain.rev) -if [ "$upstream" != "$current" ]; then - echo "$upstream" >go.toolchain.rev -fi - -if [ -n "$(git diff-index --name-only HEAD -- go.toolchain.rev)" ]; then - echo "pull-toolchain.sh: changes imported. Use git commit to make them permanent." >&2 -fi +#!/bin/sh
+# Retrieve the latest Go toolchain.
+#
+set -eu
+cd "$(dirname "$0")"
+
+read -r go_branch <go.toolchain.branch
+upstream=$(git ls-remote https://github.com/tailscale/go "$go_branch" | awk '{print $1}')
+current=$(cat go.toolchain.rev)
+if [ "$upstream" != "$current" ]; then
+ echo "$upstream" >go.toolchain.rev
+fi
+
+if [ -n "$(git diff-index --name-only HEAD -- go.toolchain.rev)" ]; then
+ echo "pull-toolchain.sh: changes imported. Use git commit to make them permanent." >&2
+fi
|
