build: fix bash->sh function declaration

release/1.8
Péter Szilágyi 6 years ago
parent 6c412e313c
commit 8b1e14b7f8
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D
  1. 4
      build/clean_go_build_cache.sh

@ -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//')

Loading…
Cancel
Save