From d071a2795bcac70543cc9487a6d5836fbe36dbbb Mon Sep 17 00:00:00 2001 From: smart Date: Fri, 5 Dec 2025 21:59:39 +0800 Subject: [PATCH] fix --- add_empty_folders.sh | 14 ++++++++++++++ rpmbuild/BUILD/.gitkeep | 0 rpmbuild/BUILDROOT/.gitkeep | 0 .../conf/Catalina/localhost/.gitkeep | 0 .../smarttms/apache-tomcat-7.0.63/logs/.gitkeep | 0 .../smarttms/apache-tomcat-7.0.63/temp/.gitkeep | 0 .../include/web-socket-js-project/.gitkeep | 0 .../smarttms/apache-tomcat-7.0.63/work/.gitkeep | 0 8 files changed, 14 insertions(+) create mode 100644 add_empty_folders.sh create mode 100644 rpmbuild/BUILD/.gitkeep create mode 100644 rpmbuild/BUILDROOT/.gitkeep create mode 100644 rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/conf/Catalina/localhost/.gitkeep create mode 100644 rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/logs/.gitkeep create mode 100644 rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/temp/.gitkeep create mode 100644 rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/webapps/noVNC-master/include/web-socket-js-project/.gitkeep create mode 100644 rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/work/.gitkeep diff --git a/add_empty_folders.sh b/add_empty_folders.sh new file mode 100644 index 0000000..5059ba2 --- /dev/null +++ b/add_empty_folders.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# 保存为 add_empty_folders.sh + +echo "正在查找并处理空文件夹..." + +# 查找所有空文件夹并创建 .gitkeep +find . -type d -empty | while read dir; do + if [ ! -f "$dir/.gitkeep" ]; then + touch "$dir/.gitkeep" + echo "✅ 已创建: $dir/.gitkeep" + fi +done + +echo "处理完成!" diff --git a/rpmbuild/BUILD/.gitkeep b/rpmbuild/BUILD/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/BUILDROOT/.gitkeep b/rpmbuild/BUILDROOT/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/conf/Catalina/localhost/.gitkeep b/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/conf/Catalina/localhost/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/logs/.gitkeep b/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/logs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/temp/.gitkeep b/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/temp/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/webapps/noVNC-master/include/web-socket-js-project/.gitkeep b/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/webapps/noVNC-master/include/web-socket-js-project/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/work/.gitkeep b/rpmbuild/SOURCES/smarttms/apache-tomcat-7.0.63/work/.gitkeep new file mode 100644 index 0000000..e69de29