Merge pull request #17250 from karalabe/fix-clean

build: fix bash->sh function declaration
This commit is contained in:
Péter Szilágyi 2018-07-26 13:05:45 +03:00 committed by GitHub
commit a511f6b515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
#!/bin/sh #!/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//') golang_version=$(go version |cut -d' ' -f3 |sed 's/go//')