chore(build): Fix Run make dev-env syntax error (#10294)
* fix: Run make dev-env syntax error #10293 Signed-off-by: Son Bui <sonbv00@gmail.com> * fix: Run make dev-env value too great for base #10294 --------- Signed-off-by: Son Bui <sonbv00@gmail.com>
This commit is contained in:
parent
616d7e97d0
commit
46d87d3462
1 changed files with 3 additions and 1 deletions
|
@ -45,9 +45,11 @@ if ! command -v helm &> /dev/null; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
function ver { printf "%d%03d%03d" $(echo "$1" | tr '.' ' '); }
|
||||
|
||||
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
|
||||
if [[ $(ver $HELM_VERSION) -lt $(ver "3.10.0") ]]; then
|
||||
echo "Please upgrade helm to v3.10.0 or higher"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue