From b3478a502e7030497c8bb6c40312d63f399784ba Mon Sep 17 00:00:00 2001 From: Joe McCormick <31295332+iamjoemccormick@users.noreply.github.com> Date: Fri, 9 Aug 2024 20:57:58 +0000 Subject: [PATCH] Fix go version check script This was adapted long ago from another script that had a die function. All we really want to do is print an error and return a non-zero exit code. --- hack/check-go-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/check-go-version.sh b/hack/check-go-version.sh index 2ee74f25..e27eb5dd 100755 --- a/hack/check-go-version.sh +++ b/hack/check-go-version.sh @@ -5,7 +5,7 @@ # The GO_BUILD_VERSION is the official go version we are building the BeeGFS CSI driver with. GO_BUILD_VERSION="go1.22.0" -INSTALLED_VERSION=$(go version | { read _ _ ver _; echo ${ver}; } ) || die "determining version of go failed" +INSTALLED_VERSION=$(go version | { read _ _ ver _; echo ${ver}; } ) || { echo >&2 "ERROR: determining version of go failed"; exit 1; } if [ "$INSTALLED_VERSION" == "$GO_BUILD_VERSION" ] then