The script was trying to be too smart and now no longer looks for actual files but instead just adds everything to the gitignore file directly. Use shell globbing for automatic file listing instead.