Renato Golin | 94cc104 | 2016-04-26 11:02:23 +0100 | [diff] [blame] | 1 | # Common functions for the bisect execution |
2 | # Do not call directly. Feel free to use. | ||||
3 | |||||
4 | safe_run() { | ||||
5 | CMD="$*" | ||||
6 | $CMD | ||||
7 | if [[ $? != 0 ]]; then | ||||
8 | echo "'$CMD' failed, bailing out" | ||||
9 | exit 1 | ||||
10 | fi | ||||
11 | } |