diff options
| author | Christian Cunningham <cc@local.lan> | 2026-03-05 16:12:07 -0800 |
|---|---|---|
| committer | Christian Cunningham <cc@local.lan> | 2026-03-05 16:12:07 -0800 |
| commit | 766ef8362886af250faf2deb044b161fb7f39505 (patch) | |
| tree | ff1aa1f124820e39b5e06eb69f59daf0231ea1f4 | |
| parent | 693e4fc288bdbd6389c51407ee2e162d30051f86 (diff) | |
Ignore empty files
| -rwxr-xr-x | cleanup_repo.sh | 3 | ||||
| -rw-r--r-- | empty.py | 0 |
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 |
