]> www.infradead.org Git - users/hch/blktests.git/commit
multipath: work around false shellcheck error
authorOmar Sandoval <osandov@fb.com>
Thu, 22 Apr 2021 17:25:47 +0000 (10:25 -0700)
committerOmar Sandoval <osandov@fb.com>
Thu, 22 Apr 2021 17:25:47 +0000 (10:25 -0700)
commitcebd899e66e9597f2535e482c9ed21549f19fc6a
treedcc51d327a3515a6c370a77f57b853e51598cfe2
parent672237594a79a2105dd8852ae38b40dc24d116da
multipath: work around false shellcheck error

Shellcheck seems to think that [ -z "$debug" ] is setting the debug
variable and warns:

  common/multipath-over-rdma:190:11: note: Modification of debug is local (to subshell caused by pipeline). [SC2030]
  common/multipath-over-rdma:606:8: note: debug was modified in a subshell. That change might be lost. [SC2031]

Work around this by using test instead.

Signed-off-by: Omar Sandoval <osandov@fb.com>
common/multipath-over-rdma