tomaz/appledoc — Issue #174: install-appledoc.sh should fail if xcodebuild fails
Author: jorgenpt
Created: 2012-01-17 18:00:06+00:00
State: open

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.