修复git管理脚本
This commit is contained in:
@@ -72,6 +72,7 @@ libaes
|
|||||||
libappbase
|
libappbase
|
||||||
libdebugtemp
|
libdebugtemp
|
||||||
libgpsrelaysentinel
|
libgpsrelaysentinel
|
||||||
|
libwinboll
|
||||||
local.properties-demo
|
local.properties-demo
|
||||||
mymessagemanager
|
mymessagemanager
|
||||||
positions
|
positions
|
||||||
@@ -81,13 +82,14 @@ winboll
|
|||||||
winboll.properties-demo
|
winboll.properties-demo
|
||||||
)
|
)
|
||||||
|
|
||||||
# ====================== 5. 获取当前目录真实文件列表 ======================
|
# ====================== 5. 获取当前目录真实文件列表(已替换标准排序ls命令) ======================
|
||||||
REAL_ITEMS=()
|
REAL_ITEMS=()
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
if [[ "$line" != "." && "$line" != ".." ]]; then
|
if [[ "$line" != "." && "$line" != ".." ]]; then
|
||||||
REAL_ITEMS+=("$line")
|
REAL_ITEMS+=("$line")
|
||||||
fi
|
fi
|
||||||
done < <(ls -a)
|
# 替换为固定ASCII排序、单列、无色彩输出,匹配白名单顺序
|
||||||
|
done < <(LC_COLLATE=C ls -a1 --color=none)
|
||||||
|
|
||||||
# ====================== 6. 差异比对函数 ======================
|
# ====================== 6. 差异比对函数 ======================
|
||||||
check_diff() {
|
check_diff() {
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ winboll.properties-demo
|
|||||||
REAL_ITEMS=()
|
REAL_ITEMS=()
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
[[ $line != "." && $line != ".." ]] && REAL_ITEMS+=("$line")
|
[[ $line != "." && $line != ".." ]] && REAL_ITEMS+=("$line")
|
||||||
done < <(ls -a)
|
# 替换为固定ASCII排序、单列无颜色输出,解决排序错乱问题
|
||||||
|
done < <(LC_COLLATE=C ls -a1 --color=none)
|
||||||
|
|
||||||
check_diff(){
|
check_diff(){
|
||||||
local miss=() extra=()
|
local miss=() extra=()
|
||||||
|
|||||||
Reference in New Issue
Block a user