(
  printf "Checking Code Style... "
  standard > stdout.tmp 2> stderr.tmp && (
    echo "passed"
  ) || (
    code=$?
    echo "failed" >&2
    cat stderr.tmp >&2
    cat stdout.tmp
    exit $code
  )
) && (
  if [[ $COVERALLS == 'true' ]];
    then
      bash ./sh/test-coverage.sh -- $JEST_ARGV
    else
      jest -- $JEST_ARGV
  fi
) && (
  ./sh/build.sh
)

(
  printf "Checking Code Style... "
  standard > stdout.tmp 2> stderr.tmp && (
    echo "passed"
  ) || (
    code=$?
    echo "failed" >&2
    cat stderr.tmp >&2
    cat stdout.tmp
    exit $code
  )
) && (
  if [[ $COVERALLS == 'true' ]];
    then
      bash ./sh/test-coverage.sh -- $JEST_ARGV
    else
      jest -- $JEST_ARGV
  fi
) && (
  bash ./sh/build.sh
)

Use bash to call build
Use bash to call build
