diff --git a/Helm/Helm部署Minio.md b/Helm/Helm部署Minio.md index 7867143..2cbe846 100644 --- a/Helm/Helm部署Minio.md +++ b/Helm/Helm部署Minio.md @@ -231,3 +231,8 @@ kubectl delete namespace minio ``` +# 问题记录 + +> 2025-08-25 在新版 Minio 当中软件页面异常干净,特此记录常用命令 + +[请参考](https://gitee.com/offends/Linux/blob/main/Docs/Minio-Mc%E5%B7%A5%E5%85%B7%E4%BD%BF%E7%94%A8.md) diff --git a/builder.sh b/builder.sh index 2cb6f58..7fbbb74 100644 --- a/builder.sh +++ b/builder.sh @@ -79,11 +79,26 @@ single_column: true\n\ function Replace_Url() { SEND_INFO "------------ 开始替换 Gitee 链接为 Blog 链接 ------------" - for i in $(grep -r 'https://gitee.com/offends/' . | awk -F ':' '{print $1}'); do - sed -i 's|https://gitee.com/offends/\(.*\)blob/main/\(.*\.md\)|https://blog.offends.cn/\1\2|g' $i || true - sed -i 's|\.md$|.html|g' $i || true - sed -i 's|\.md)$|.html)|g' $i || true + + # 使用更精确的匹配模式,处理包含中文和其他特殊字符的URL + grep -r 'https://gitee.com/offends/' --include="*.md" . | while read -r line; do + file=$(echo "$line" | awk -F ':' '{print $1}') + + # 一次性完成所有替换操作 + sed -i ' + # 处理标准格式的Gitee链接 + s|https://gitee.com/offends/\([^/]*\)/blob/main/\(.*\)\.md|https://blog.offends.cn/\1/\2.html|g + s|https://gitee.com/offends/\([^/]*\)/blob/main/\(.*\)\.md#\(.*\)|https://blog.offends.cn/\1/\2.html#\3|g + + # 额外处理可能遗漏的.md后缀 + s|\(https://blog.offends.cn/[^)]*\)\.md|\1.html|g + s|\.md#|.html#|g + s|\.md$|.html|g + s|\.md)|.html)|g + ' "$file" done + + SEND_INFO "------------ 替换完成 ------------" } function All() {