ctdb-tests: Avoid ShellCheck warning SC2059
commita45a76fd19ce486049583e1e7435320be40f9ef9
authorMartin Schwenke <mschwenke@ddn.com>
Tue, 4 Jul 2023 00:30:05 +0000 (4 10:30 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 5 Jul 2023 11:18:37 +0000 (5 11:18 +0000)
treeb34107f55704a82d02d9e75d2b6b6191dfcc8e57
parent58a117d3d57de416b946c91bf78107d507616e63
ctdb-tests: Avoid ShellCheck warning SC2059

  SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo".

Move the format string to the function and just parameterise the share
type.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
ctdb/tests/UNIT/eventscripts/50.samba.monitor.105.sh
ctdb/tests/UNIT/eventscripts/60.nfs.monitor.161.sh
ctdb/tests/UNIT/eventscripts/scripts/local.sh