]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-scripts: Avoid shellcheck warning SC2124 (string=array)
authorMartin Schwenke <martin@meltin.net>
Thu, 14 Jul 2016 02:28:17 +0000 (12:28 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 21 Jul 2016 00:24:27 +0000 (02:24 +0200)
SC2124: Assigning an array to a string!
        Assign as array, or use * instead of @ to concatenate.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/onnode

index 635cd0d5b1c10b512b246784a241c357fe680c90..e7317b75f300cc7bb4a8c61fb37028d3d38a8563 100755 (executable)
@@ -104,7 +104,7 @@ parse_options ()
     [ $# -lt 2 ] && usage
 
     nodespec="$1" ; shift
-    command="$@"
+    command="$*"
 }
 
 echo_nth ()