From e5a5419e53a9de4176cffe11abaede57ba064aec Mon Sep 17 00:00:00 2001 From: hongyegong Date: Mon, 7 Oct 2019 15:13:12 -0700 Subject: [PATCH] Update check_build_deps.sh Updated the kustomize version check according to a recent version string update in latest kustomize release 3.2.1. --- scripts/check_build_deps.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/check_build_deps.sh b/scripts/check_build_deps.sh index e4ec9d91..4f91eb0f 100755 --- a/scripts/check_build_deps.sh +++ b/scripts/check_build_deps.sh @@ -28,6 +28,11 @@ kustomize_url="https://github.com/kubernetes-sigs/kustomize/blob/master/docs/INS kustomize_major_version=$(kustomize version \ | grep -P -o 'KustomizeVersion:\d+\.' \ | grep -P -o '\d+') +if [[ -z "${kustomize_major_version}" ]]; then + kustomize_major_version=$(kustomize version \ + | grep -P -o 'kustomize/v\d+\.' \ + | grep -P -o '\d+') +fi if [[ "${kustomize_major_version}" -lt 3 ]]; then echo "Error: Kustomize v3+ is required for the build." echo "Please install it by following the instructions at ${kustomize_url}"