From b2b1be58dc853ae9c8586dedcf37508661c878a1 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 18 Feb 2021 09:17:11 +0200 Subject: refactor(check): simplify how quietness is implemented --- check | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/check b/check index 27bef0d..79b73ee 100755 --- a/check +++ b/check @@ -4,13 +4,11 @@ set -eu -quiet=-q hideok=chronic if [ "$#" -gt 0 ] then case "$1" in verbose | -v | --verbose) - quiet= hideok= shift ;; @@ -22,10 +20,10 @@ got_cargo_cmd() cargo --list | grep " $1 " > /dev/null } -cargo build --all-targets $quiet -got_cargo_cmd clippy && cargo clippy $quiet -got_cargo_cmd fmt && cargo fmt -- --check -$hideok cargo test $quiet +$hideok cargo build --all-targets +got_cargo_cmd clippy && $hideok cargo clippy +got_cargo_cmd fmt && $hideok cargo fmt -- --check +$hideok cargo test sp-docgen obnam.md -o obnam.html sp-docgen obnam.md -o obnam.pdf -- cgit v1.2.1