#!/bin/bash

git log HEAD~1..HEAD | grep -q '!!! Temporary Commit !!!'
is_tmp_commit=$?

# When we're on a temporary commit, don't do anything.
if [[ $is_tmp_commit = 0 ]]; then
  exit 0
fi

echo "--> Running $0"

source $(dirname $0)/rust_env.sh

set -e
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
  make unit-${COMPONENTS:-all}
else
  make unit-${COMPONENTS:-all}
fi

#!/bin/bash

git log HEAD~1..HEAD | grep -q '!!! Temporary Commit !!!'
is_tmp_commit=$?

# When we're on a temporary commit, don't do anything.
if [[ $is_tmp_commit = 0 ]]; then
  exit 0
fi

echo "--> Running $0"

source $(dirname $0)/rust_env.sh

set -e
make unit-${COMPONENTS:-all}

Remove if/else without a distinction
Remove if/else without a distinction

Signed-off-by: Christopher Maier <b4598f17a90ef80817bae8ad6c37249740caafb4@chef.io>
