From 45aee54e984dd61a26dba4493861f69e8dcfe4b9 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Fri, 10 Nov 2023 15:41:10 +0800 Subject: [PATCH] Update fmt.sh (#734) --- hack/fmt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/fmt.sh b/hack/fmt.sh index 43d2272..7566a4f 100755 --- a/hack/fmt.sh +++ b/hack/fmt.sh @@ -14,7 +14,7 @@ function filter_docker_library() { function filter_k8s_old() { while read -r line; do - if [[ $line =~ ^k8s\.gcr\.io/[^/]*$ ]]; then + if [[ $line =~ ^k8s\.gcr\.io/.*$ ]]; then echo "registry.k8s.io/${line#k8s.gcr.io/}" else echo "${line}"