修复合并后的仓库检查失败
删除重复维护页原子替换函数并恢复符号链接防护 清理开发栈未使用变量与资源投影正则告警 统一相关测试导入与开发栈导出顺序
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user