]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tools: Avoid ShellCheck warning SC2317
authorMartin Schwenke <mschwenke@ddn.com>
Mon, 3 Jul 2023 03:26:20 +0000 (13:26 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 5 Jul 2023 11:18:37 +0000 (11:18 +0000)
New in ShellCheck 0.9.0:

  SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
ctdb/tools/onnode

index 425db8047ccbb24cb3dd04facf5fc4786ee8d045..f04d33f9c3f66181a8d1b141491921b61ec2e63d 100755 (executable)
@@ -254,6 +254,8 @@ get_nodes ()
        done
 }
 
+# shellcheck disable=SC2317
+# push() called indirectly via $ONNODE_SSH
 push ()
 {
        local host="$1"