From e1083fd3d8dfe1c803f24a0ac8021bbd338cb847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E7=92=9F?= Date: Tue, 22 Oct 2024 17:11:03 +0800 Subject: [PATCH] Update dockerhub_proxy.yml --- .github/workflows/dockerhub_proxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dockerhub_proxy.yml b/.github/workflows/dockerhub_proxy.yml index 9554702a..99048a6a 100644 --- a/.github/workflows/dockerhub_proxy.yml +++ b/.github/workflows/dockerhub_proxy.yml @@ -18,7 +18,7 @@ jobs: curl -o dockerhub-proxy.md https://raw.githubusercontent.com/Websoft9/doc.websoft9.com/refs/heads/main/docs/reference/_include/dockerhub-proxy.md # 提取 Markdown 文件中的 URL - urls=$(grep -Eo 'https://[a-zA-Z0-9./?=_-]*' dockerhub-proxy.md | tr '\n' ',' | sed 's/,$//') + urls=$(grep -Eo 'https://[a-zA-Z0-9./?=_-]*' dockerhub-proxy.md | sed 's/^/"/; s/$/"/' | tr '\n' ',' | sed 's/,$//') # 创建新的 backends 数组 new_backends="const backends = [${urls}]"