]> www.infradead.org Git - users/hch/blktests.git/commit
Fix multiple shellcheck warnings
authorBart Van Assche <bvanassche@acm.org>
Tue, 16 Nov 2021 18:22:49 +0000 (10:22 -0800)
committerOmar Sandoval <osandov@osandov.com>
Mon, 22 Nov 2021 19:13:19 +0000 (11:13 -0800)
commit19f347bff9e8d6e4f21c3578c15c09365c58c0c4
treebcf89ac8b5a6cb39fba541252b88d7f0dc11e338
parent38fc272ee91f91629d1e7c6abda005d97d3ae8bf
Fix multiple shellcheck warnings

The latest version of shellcheck reports the following warnings:

check:307:9: warning: Quote arguments to unset so they're not glob expanded. [SC2184]
check:505:10: warning: Quote arguments to unset so they're not glob expanded. [SC2184]
check:506:10: warning: Quote arguments to unset so they're not glob expanded. [SC2184]
check:539:11: warning: Quote arguments to unset so they're not glob expanded. [SC2184]
new:102:19: note: Expansions inside ${..} need to be quoted separately, otherwise they match as patterns. [SC2295]
common/rc:272:37: warning: -ne treats this as an arithmetic expression. Use != to compare as string (or expand explicitly with $((expr))). [SC2309]
tests/block/008:65:10: warning: Quote arguments to unset so they're not glob expanded. [SC2184]
tests/block/008:71:10: warning: Quote arguments to unset so they're not glob expanded. [SC2184]

This patch fixes the above warnings.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
check
common/rc
new
tests/block/008