Skip to content

Commit

Permalink
Fixing ensure go script
Browse files Browse the repository at this point in the history
  • Loading branch information
adilGhaffarDev committed Oct 26, 2023
1 parent 783eb74 commit bfc8633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/e2e/ensure_go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ verify_go_version()

local go_version
IFS=" " read -ra go_version <<< "$(go version)"
if ! [[ "${MINIMUM_GO_VERSION}" =~ .*"${go_version[2]}".* ]]; then
if [[ "${MINIMUM_GO_VERSION}" != $(echo -e "${MINIMUM_GO_VERSION}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) ]] && [[ "${go_version[2]}" != "devel" ]]; then
cat << EOF
Detected go version: ${go_version[2]}.
Requires ${MINIMUM_GO_VERSION} or greater.
Expand Down

0 comments on commit bfc8633

Please sign in to comment.