Skip to content

Commit

Permalink
Fix go version check script
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
iamjoemccormick committed Aug 9, 2024
1 parent a53f937 commit b3478a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/check-go-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3478a5

Please sign in to comment.