aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-07-26 18:05:45 +0800
committerGitHub <noreply@github.com>2018-07-26 18:05:45 +0800
commita511f6b51589f2af0a63f23a7a63238c30740ab4 (patch)
tree44d7f02055dc60f0d7de210f8c5857801fd9e074
parent6c412e313cdf9d10b938c116a2466e7f43b3670a (diff)
parent8b1e14b7f8420e0c3f7ad95f8fb75eb2b88d3df9 (diff)
downloadgo-tangerine-a511f6b51589f2af0a63f23a7a63238c30740ab4.tar
go-tangerine-a511f6b51589f2af0a63f23a7a63238c30740ab4.tar.gz
go-tangerine-a511f6b51589f2af0a63f23a7a63238c30740ab4.tar.bz2
go-tangerine-a511f6b51589f2af0a63f23a7a63238c30740ab4.tar.lz
go-tangerine-a511f6b51589f2af0a63f23a7a63238c30740ab4.tar.xz
go-tangerine-a511f6b51589f2af0a63f23a7a63238c30740ab4.tar.zst
go-tangerine-a511f6b51589f2af0a63f23a7a63238c30740ab4.zip
Merge pull request #17250 from karalabe/fix-clean
build: fix bash->sh function declaration
-rwxr-xr-xbuild/clean_go_build_cache.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/clean_go_build_cache.sh b/build/clean_go_build_cache.sh
index e6a523fb4..a55650c8f 100755
--- a/build/clean_go_build_cache.sh
+++ b/build/clean_go_build_cache.sh
@@ -1,6 +1,8 @@
#!/bin/sh
-function version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; }
+version_gt() {
+ test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"
+}
golang_version=$(go version |cut -d' ' -f3 |sed 's/go//')