There was an error while loading. Please reload this page.
1 parent 459651a commit 67150c8Copy full SHA for 67150c8
1 file changed
hack/generate-kind-config.sh
@@ -31,7 +31,7 @@ if [[ -z "$K8S_VERSION" || -z "$OUTPUT" ]]; then
31
exit 1
32
fi
33
34
-K8S_MINOR=$(echo "$K8S_VERSION" | grep -oP '(?<=v1\.)\d+')
+K8S_MINOR=$(echo "$K8S_VERSION" | sed -nE 's/^v1\.([0-9]+).*$/\1/p')
35
36
if [[ -z "$K8S_MINOR" ]]; then
37
echo "Error: could not parse minor version from --k8s-version '$K8S_VERSION'" >&2
0 commit comments