mirror of https://github.com/ethereum/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
296 B
11 lines
296 B
6 years ago
|
#!/bin/sh
|
||
|
|
||
|
function version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; }
|
||
|
|
||
|
golang_version=$(go version |cut -d' ' -f3 |sed 's/go//')
|
||
|
|
||
|
# Clean go build cache when go version is greater than or equal to 1.10
|
||
|
if !(version_gt 1.10 $golang_version); then
|
||
|
go clean -cache
|
||
|
fi
|