Forum Moderators: coopster
Your error should point to a line #
that very often is not the cause but the result of above script
try to break your script in chunks
and exec one chunk at a time
also echo some to see if you get the expected results
regards