diff options
author | Martin Schwenke <martin@meltin.net> | 2016-07-06 17:31:51 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2016-07-21 02:24:26 +0200 |
commit | 9255d645f3df9d6451ed0f1382c6752b7bec22ff (patch) | |
tree | 3386b557c3c8064ca1111c3483c8e82b68f09d0f /ctdb/tools/ctdb_natgw | |
parent | f6c25a455a62281fd4bf2e3e74cd0ae4233df132 (diff) | |
download | samba-9255d645f3df9d6451ed0f1382c6752b7bec22ff.tar.gz |
ctdb-scripts: Avoid shellcheck warnings SC2046, SC2086 (double-quoting)
SC2046: Quote this to prevent word splitting.
SC2086: Double quote to prevent globbing and word splitting.
Add some quoting where it makes sense. Use shellcheck directives for
false-positives.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tools/ctdb_natgw')
-rwxr-xr-x | ctdb/tools/ctdb_natgw | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/tools/ctdb_natgw b/ctdb/tools/ctdb_natgw index 28c304d8484..54e416dfda7 100755 --- a/ctdb/tools/ctdb_natgw +++ b/ctdb/tools/ctdb_natgw @@ -137,6 +137,8 @@ nodes_list () { get_natgw_nodes || \ die "${prog}: NAT gateway nodes file \"$CTDB_NATGW_NODES\" not found" + # Intentional word splitting here + # shellcheck disable=SC2046 set -- $(find_master) || \ die "${prog}: Unable to determine NAT gateway master node" _master_ip="$2" |