]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
check: fix shellcheck warning on missing config
authorOmar Sandoval <osandov@fb.com>
Wed, 25 Apr 2018 22:08:43 +0000 (15:08 -0700)
committerOmar Sandoval <osandov@fb.com>
Wed, 25 Apr 2018 22:08:43 +0000 (15:08 -0700)
The config is optional, and shellcheck isn't smart enough to notice that
it's guarded by a readable test.

Signed-off-by: Omar Sandoval <osandov@fb.com>
check

diff --git a/check b/check
index 118b1d18deea0ef09f7f695a033e69e012490f11..19f5456118c85ea87d617cf2f9b0b23948bda636 100755 (executable)
--- a/check
+++ b/check
@@ -569,6 +569,7 @@ EXCLUDE=()
 TEST_DEVS=()
 
 if [[ -r config ]]; then
+       # shellcheck disable=SC1091
        . config
 fi