Error in cronjob since update 0.9

Since I’ve updated to Piwik 0.9 I got the following Cronjob error:
/home/maxstats/public_html/piwik/misc/cron/archive.sh: line 83: syntax error near unexpected token `done’

Part of the file that is affected:

31     echo "Archiving for idsite = $idsite done!"
82   fi
83 done
84
85 echo "Reports archiving finished."

How to fix this?

I don’t see any obvious errors in the script. Try the latest version: http://dev.piwik.org/trac/export/2898/trun…cron/archive.sh

I haven’t got the error since. And the stats are building fine.
So, I don’t know what caused the error, but it vanished by itself.
Strange, though. If I’ll get the error again, I’ll try to overwrite the file with the one mentioned above.