Files
Gokapi/build/updateCoverage.sh
2021-04-19 16:39:24 +02:00

15 lines
387 B
Bash
Executable File

#!/bin/sh
#Called by go generate
#Creates the coverage for the README.md file if gopherbadger is installed
cd ../../
#Grep is used to hide output
which gopherbadger > /dev/null
if [ $? -eq 0 ]; then
gopherbadger -png=false -md=README.md -tags "test" > /dev/null
rm coverage.out
echo "Updated coverage in readme file"
else
echo "Gopherbadger not installed, not updating coverage"
fi