52379fa76d
This is especially important for distributions like NixOS where `/bin/bash` doesn't exist, or for MacOS users who've installed a newer version of Bash than the one that comes with their OS. Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
15 lines
236 B
Bash
15 lines
236 B
Bash
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
bundle_cover() {
|
|
coverprofiles=( "$DEST/../"*"/coverprofiles/"* )
|
|
for p in "${coverprofiles[@]}"; do
|
|
echo
|
|
(
|
|
set -x
|
|
go tool cover -func="$p"
|
|
)
|
|
done
|
|
}
|
|
|
|
bundle_cover 2>&1 | tee "$DEST/report.log"
|