summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcleanup_repo.sh3
-rw-r--r--empty.py0
2 files changed, 3 insertions, 0 deletions
diff --git a/cleanup_repo.sh b/cleanup_repo.sh
index 632757d..4352f1a 100755
--- a/cleanup_repo.sh
+++ b/cleanup_repo.sh
@@ -12,6 +12,9 @@ MODEL="${OLLAMA_MODEL:-llama3.2}"
SOURCE_FILES=`find . -type f -iname \*.py`
for source_file in $SOURCE_FILES; do
+ if [ ! -s "${source_file}" ]; then
+ continue
+ fi
SOURCE=$(<"${source_file}")
PROMPT=$(cat << EOF
Please clean up the following code, leaving ample documentation.
diff --git a/empty.py b/empty.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/empty.py