diff --git a/ci-coverage.sh b/ci-coverage.sh index 27944b3bc..8524fba9f 100755 --- a/ci-coverage.sh +++ b/ci-coverage.sh @@ -4,7 +4,7 @@ THRESHOLD=75 # percentage go test -coverprofile c.out ./... cov=$(go tool cover -func c.out | grep '^total:' | awk '{ print $3+0 }') -if [[ $(bc -e "$cov < $THRESHOLD") ]]; then +if [[ $(bc --expression="$cov < $THRESHOLD") ]]; then echo "threshold not met - code must be at or above $THRESHOLD% coverage" exit 1 fi