From 2bdcee7922db827f46d9660ae7a02d19315ccffe Mon Sep 17 00:00:00 2001 From: Luc Talatinian Date: Tue, 12 Dec 2023 20:16:36 -0500 Subject: [PATCH] long form expr --- ci-coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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