aboutsummaryrefslogtreecommitdiff
path: root/bisect/common.sh
blob: 82ff7e48b3998107616ac6bfcab1b19aa991e719 (plain)
1
2
3
4
5
6
7
8
9
10
11
# Common functions for the bisect execution
# Do not call directly. Feel free to use.

safe_run() {
  CMD="$*"
  $CMD
  if [[ $? != 0 ]]; then
    echo "'$CMD' failed, bailing out"
    exit 1
  fi
}