diff --git a/cli/lib/logging.bash b/cli/lib/logging.bash index ffc8a48..eb6b585 100644 --- a/cli/lib/logging.bash +++ b/cli/lib/logging.bash @@ -4,7 +4,7 @@ # Example usage: # `echo 'Terrible error' | error` -if ! command -v tput &>/dev/null +if ! tput sgr0 &>/dev/null then tput() { :; } fi diff --git a/cli/run-tests.bash b/cli/run-tests.bash index 1c207e0..4ddb7c3 100755 --- a/cli/run-tests.bash +++ b/cli/run-tests.bash @@ -73,7 +73,7 @@ then echo "Total $(jq -r '.percent_covered' <"$coverage_dir/merged/kcov-merged/coverage.json")%" fi -if ! command -v tput &>/dev/null; then +if ! tput sgr0 &>/dev/null; then tput() { :; } fi