master - tests: check.sh eliminate useless cat
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b45ca523ecbba006d2982ae085140c69edbe084e Commit: b45ca523ecbba006d2982ae085140c69edbe084e Parent: 51237cb5047a93382f8d239e9aa9d3899154300f Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Jun 29 11:56:47 2017 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Jun 29 22:23:17 2017 +0200
tests: check.sh eliminate useless cat
Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
--- test/lib/check.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
test/lib/check.sh +1 -1
@@ -49,7 +49,7 @@ mirror_images_redundant() { (grep -v ^# check.tmp.all || true) | sort | uniq -d > check.tmp - test "$(cat check.tmp | wc -l)" -eq 0 || \ + test "$(wc -l < check.tmp)" -eq 0 || \ die "mirror images of $lv expected redundant, but are not:" \ "$(cat check.tmp.all)" }