[[:space:]]*//' -e 's/%.*$/%/' \ + | sed -e '0,/^Totals<\/pre>$/d' \ + | sed -n -e '2,1p' \ + | sed -e 's/[[:space:]]*//' \ + | sed -e 's/%.*$/%/' )" if [[ "$TOTAL_COVERAGE" == *% ]]; then - COVERAGE_VALUE="''${TOTAL_COVERAGE%\%}" + COVERAGE_VALUE="$(printf "%.0f" "''${TOTAL_COVERAGE%\%}")" if [[ "$COVERAGE_VALUE" -ge 80 ]]; then COLOR="green" elif [[ "$COVERAGE_VALUE" -ge 50 ]]; then