]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tools: Drop 'o' option from getopts command
authorMartin Schwenke <martin@meltin.net>
Mon, 12 Aug 2019 06:11:13 +0000 (16:11 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 14 Aug 2019 09:11:34 +0000 (09:11 +0000)
Commit 90de5e0594b9180226b9a13293afe31f18576b3d remove the processing
for this option but forgot to remove it from the getopts command.

Versions of ShellCheck >= 0.4.7 warn on this, so it is worth fixing.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14086
RN: Fix onnode test failure with ShellCheck >= 0.4.7
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/onnode

index e143ba2d4d42a0bb3b5685ceeb6bcb08bfb83939..d6595fff4aa9ba3cbeae33ef9e8b41e6e0dc0ccf 100755 (executable)
@@ -72,7 +72,7 @@ parse_options ()
 {
        local opt
 
-       while getopts "cf:hno:pqvPi?" opt ; do
+       while getopts "cf:hnpqvPi?" opt ; do
                case "$opt" in
                c) current=true ;;
                f) ctdb_nodes_file="$OPTARG" ;;