I had the same thing happen to me.
Any suggestions for this???
I can only suggest that you either carefully check the script for missing or incorrect characters. The easiest way to ensure that the script is correct is to "copy and paste" the complete content from the first post.
All the permissions must be set as well otherwise it just won't run correctly, and take not of the two different lines in the script for the slightly different clamav installations.