Currently, if any step fails, the script will continue on running. It'd be cleaner (and easier to figure out what went wrong) if it stopped once an error did occur - you can achieve this by just adding "set -e" to the top of the script (and switching it to bash instead of sh). set -e enables 'errexit', which exits the script with error code 1 if a simple command returns a non-zero status.
Hm, not familiar with this - the whole install script was contribution of an appledoc user. Does it work for you with your fix?Could you send me the updated file (yea, lame of me, but I'm currently too busy with other work :))
Use bash & errexit to exit if something fails.
This fixes GH-174.