修复合并后的仓库检查失败
Project CI / Repository checks (pull_request) Successful in 1m8s
Project CI / Frontend tests (pull_request) Successful in 3m2s
Project CI / Backend tests (pull_request) Successful in 3m42s
Project CI / Native shell tests (pull_request) Failing after 9m28s

删除重复维护页原子替换函数并恢复符号链接防护
清理开发栈未使用变量与资源投影正则告警
统一相关测试导入与开发栈导出顺序
This commit is contained in:
2026-08-07 12:44:29 +08:00
parent 75e3f1d041
commit 6fe52a92bb
6 changed files with 5 additions and 19 deletions
-13
View File
@@ -37,19 +37,6 @@ replace_file_atomically() {
mv -f "${source_file}" "${target_file}"
}
replace_file_atomically() {
local source_file="$1"
local target_file="$2"
if [[ -d "${target_file}" && ! -L "${target_file}" ]]; then
echo "[maintenance] 原子替换目标不能是目录: ${target_file}" >&2
exit 1
fi
# 源文件与目标文件位于同一目录,POSIX rename 语义即可保证原子替换。
# 不使用 GNU mv 专属的 -T,确保 macOS/BSD 本地门禁也能执行。
mv -f "${source_file}" "${target_file}"
}
while [[ $# -gt 0 ]]; do
case "$1" in
--page-file)