From 8b1e14b7f8420e0c3f7ad95f8fb75eb2b88d3df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 26 Jul 2018 13:01:00 +0300 Subject: build: fix bash->sh function declaration --- build/clean_go_build_cache.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build') 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//') -- cgit v1.2.3