From 5fb3b974afb1cf12fd6e67c6db4c23499087d270 Mon Sep 17 00:00:00 2001 From: Long Wu Yuan Date: Sat, 1 Oct 2022 22:14:13 +0530 Subject: [PATCH] fixed broken helm version comparision (#9113) --- build/dev-env.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/dev-env.sh b/build/dev-env.sh index 68b683350..ae6860726 100755 --- a/build/dev-env.sh +++ b/build/dev-env.sh @@ -45,9 +45,10 @@ if ! command -v helm &> /dev/null; then exit 1 fi -HELM_VERSION=$(helm version 2>&1 | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+') || true -if [[ ${HELM_VERSION} < "v3.9.0" ]]; then - echo "Please upgrade helm to v3.9.0 or higher" +HELM_VERSION=$(helm version 2>&1 | cut -f1 -d"," | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') || true +echo $HELM_VERSION +if [[ ${HELM_VERSION} -lt 3.10.0 ]]; then + echo "Please upgrade helm to v3.10.0 or higher" exit 1 fi