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