]> www.infradead.org Git - users/hch/blktests.git/commit
cgroup: test if CGROUP2_DIR is set with -v instead of -n
authorOmar Sandoval <osandov@fb.com>
Thu, 17 Jan 2019 01:34:19 +0000 (17:34 -0800)
committerOmar Sandoval <osandov@fb.com>
Thu, 17 Jan 2019 01:34:19 +0000 (17:34 -0800)
commit8a274578e2895b9f0b66c09f3a8f63b5ff1293b2
tree18052a2c0eb194d7f0e6e6a31bdbc92ecabc9349
parent3c2a37f3582507d3b2b1196e6747a643768e583b
cgroup: test if CGROUP2_DIR is set with -v instead of -n

common/multipath-over-rdma does set -u, so -n "$CGROUP2_DIR" fails with
an unbound variable error. Instead, use -v to test if the variable was
set.

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