ekumenlabs / roscpp_android

Cross compilation scripts for building ROS nodes using the Android NDK.
39 stars 30 forks source link

Exit bash scripts if any command fails #41

Closed garyservin closed 8 years ago

garyservin commented 8 years ago

Currently, our scripts runs every command, even if the previous failed, making it difficult to debug sometime, since we have to go through the massive logs.

In this PR, I've used the set -e which kills the script if a single command on it fails.

cc: @ernestmc @adamantivm

ernestmc commented 8 years ago

Looks good. This addition makes it easier to detect errors.