diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-02-18 09:17:11 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-02-18 09:17:11 +0200 |
commit | b2b1be58dc853ae9c8586dedcf37508661c878a1 (patch) | |
tree | a6e420b544d7e4715159a58be34a2b187e8824be | |
parent | 3220fb17fe56cd0373a0079f0847158c4b127c59 (diff) | |
download | obnam2-b2b1be58dc853ae9c8586dedcf37508661c878a1.tar.gz |
refactor(check): simplify how quietness is implemented
-rwxr-xr-x | check | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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 |