mirror of
https://github.com/Forceu/Gokapi.git
synced 2025-12-30 13:29:34 -06:00
14 lines
363 B
Bash
Executable File
14 lines
363 B
Bash
Executable File
#!/bin/sh
|
|
#Called by go generate
|
|
#Creates the coverage for the README.md file if gopherbadger is installed
|
|
|
|
cd ../
|
|
which gopherbadger > /dev/null
|
|
if [ $? -eq 0 ]; then
|
|
gopherbadger -png=false -md=README.md -tags "test,awsmock" > /dev/null
|
|
rm coverage.out
|
|
echo "Updated coverage in readme file"
|
|
else
|
|
echo "Gopherbadger not installed, not updating coverage"
|
|
fi
|