[2025-02-05 12:37:08]-自动同步

This commit is contained in:
2025-02-05 12:37:08 +00:00
Unverified
parent 5447c623d0
commit f2ef3db5d9
2 changed files with 9 additions and 0 deletions

View File

@@ -11,6 +11,15 @@ if [ ! -d .git ]; then
exit 1
fi
# 处理空目录,添加 .gitkeep 文件
log "检查并处理空目录..."
for dir in $(find . -type d); do
if [ -z "$(ls -A "$dir")" ]; then
touch "$dir/.gitkeep"
log "在空目录 $dir 中添加 .gitkeep 文件。"
fi
done
# 1. 暂存所有更改
log "开始暂存所有更改..."
git add . 2>&1 | while IFS= read -r line; do

0
ssl/.gitkeep Normal file
View File