ctdb-tests: Avoid shellcheck warnings
authorMartin Schwenke <martin@meltin.net>
Thu, 5 Sep 2019 23:01:36 +0000 (09:01 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 17 Sep 2019 04:35:26 +0000 (04:35 +0000)
commit8038f4f64f4f6a77346837c1877e352be2632cd0
treed73258d80ea143f069d9e83136632fca889983c9
parent497ae563a0b3e45794c22acb67ccde060d34f371
ctdb-tests: Avoid shellcheck warnings

SC2086 Double quote to prevent globbing and word splitting

This one doesn't need the double quotes if it is contained within the
preceding variable expansion.

SC2181 Check exit code directly with e.g. 'if mycmd;', not indirectly with $?
SC2004 $/${} is unnecessary on arithmetic variables

These are straightforward.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/scripts/local_daemons.bash