mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 02:08:09 +00:00
15 lines
549 B
Bash
Executable file
15 lines
549 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# spell-checker:ignore (vars) OSID
|
|
|
|
ME_dir="$(dirname -- "$(readlink -fm -- "$0")")"
|
|
REPO_main_dir="$(dirname -- "${ME_dir}")"
|
|
|
|
export COVERAGE_REPORT_DIR="${REPO_main_dir}/target/debug/coverage-nix"
|
|
|
|
if ! "${ME_dir}/build-code_coverage.sh"; then exit 1; fi
|
|
|
|
case ";$OSID_tags;" in
|
|
*";wsl;"*) powershell.exe -c "$(wslpath -w "${COVERAGE_REPORT_DIR}"/index.html)" ;;
|
|
*) xdg-open --version >/dev/null 2>&1 && xdg-open "${COVERAGE_REPORT_DIR}"/index.html || echo "report available at '\"${COVERAGE_REPORT_DIR}\"/index.html'" ;;
|
|
esac
|