修复git管理脚本

This commit is contained in:
2026-07-01 04:33:36 +08:00
parent eee8809485
commit ca33dab4da
2 changed files with 6 additions and 3 deletions

View File

@@ -72,6 +72,7 @@ libaes
libappbase
libdebugtemp
libgpsrelaysentinel
libwinboll
local.properties-demo
mymessagemanager
positions
@@ -81,13 +82,14 @@ winboll
winboll.properties-demo
)
# ====================== 5. 获取当前目录真实文件列表 ======================
# ====================== 5. 获取当前目录真实文件列表已替换标准排序ls命令 ======================
REAL_ITEMS=()
while IFS= read -r line; do
if [[ "$line" != "." && "$line" != ".." ]]; then
REAL_ITEMS+=("$line")
fi
done < <(ls -a)
# 替换为固定ASCII排序、单列、无色彩输出匹配白名单顺序
done < <(LC_COLLATE=C ls -a1 --color=none)
# ====================== 6. 差异比对函数 ======================
check_diff() {

View File

@@ -78,7 +78,8 @@ winboll.properties-demo
REAL_ITEMS=()
while IFS= read -r line; do
[[ $line != "." && $line != ".." ]] && REAL_ITEMS+=("$line")
done < <(ls -a)
# 替换为固定ASCII排序、单列无颜色输出解决排序错乱问题
done < <(LC_COLLATE=C ls -a1 --color=none)
check_diff(){
local miss=() extra=()