Update fmt.sh (#734)

This commit is contained in:
Shiming Zhang 2023-11-10 15:41:10 +08:00 committed by GitHub
parent bd2f1550a7
commit 45aee54e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ function filter_docker_library() {
function filter_k8s_old() { function filter_k8s_old() {
while read -r line; do 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/}" echo "registry.k8s.io/${line#k8s.gcr.io/}"
else else
echo "${line}" echo "${line}"