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