From: Bart Van Assche Date: Fri, 22 Jun 2018 22:19:41 +0000 (-0700) Subject: tests/meta/group: Fix shellcheck complaints X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f668ae983a9ff8f9ef7ea55bda9ee645d1b3d1d4;p=users%2Fsagi%2Fblktests.git tests/meta/group: Fix shellcheck complaints Avoid that shellcheck complains about unused global variables. Avoid that shellcheck complains about using cat instead of redirection. Signed-off-by: Bart Van Assche --- diff --git a/tests/meta/group b/tests/meta/group index 4281ea1..8e3322e 100644 --- a/tests/meta/group +++ b/tests/meta/group @@ -76,7 +76,7 @@ RIP: blk_dev_init+0x4/0x6 RSP: ffffc9000031fe70 ---[ end trace d9ab35f734a89f58 ]--- EOF - cat "$TMPDIR/dmesg" | while IFS= read -r line; do + while IFS= read -r line; do echo "$line" >> /dev/kmsg - done + done < "$TMPDIR/dmesg" }