I'm not sure what curse has changed, but I was getting -1 returns on find that was putting very large 2,500 character versions including equal signs and line returns. These strange versions where messing up my installed.txt. So I added a check for when find returns -1, put a max character limit on versions of 300 characters, and replaced line returns and equal signs in versions with less harmful characters. I also had it changing my version even when the download failed, so I added a check to make sure it made it past the extraction before changing the version.
I'm not sure what curse has changed, but I was getting -1 returns on find that was putting very large 2,500 character versions including equal signs and line returns. These strange versions where messing up my installed.txt. So I added a check for when find returns -1, put a max character limit on versions of 300 characters, and replaced line returns and equal signs in versions with less harmful characters. I also had it changing my version even when the download failed, so I added a check to make sure it made it past the extraction before changing the version.