diff options
Diffstat (limited to 'cleanup_repo.sh')
| -rwxr-xr-x | cleanup_repo.sh | 3 |
1 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. |
