ctdb-scripts: Avoid shellcheck warning SC2188 (redirect without command)
authorMartin Schwenke <martin@meltin.net>
Thu, 13 Jul 2017 02:52:39 +0000 (12:52 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 14 Aug 2017 03:15:25 +0000 (05:15 +0200)
This makes the code look deliberate instead like something has been
accidentally omitted.

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

index 5df52c2be5af3b32f9d70bcf9ad7d9edd4c4fd09..1131229ebb9f00ef8244c17993e0a5682878f81e 100755 (executable)
@@ -701,7 +701,7 @@ _ctdb_counter_common () {
 ctdb_counter_init () {
     _ctdb_counter_common "$1"
 
-    >"$_counter_file"
+    >"$_counter_file"
 }
 ctdb_counter_incr () {
     _ctdb_counter_common "$1"
@@ -747,7 +747,7 @@ ctdb_service_needs_reconfigure ()
 ctdb_service_set_reconfigure ()
 {
     _ctdb_service_reconfigure_common
-    >"$_ctdb_service_reconfigure_flag"
+    >"$_ctdb_service_reconfigure_flag"
 }
 
 ctdb_service_unset_reconfigure ()
@@ -868,7 +868,7 @@ if ! type mktemp >/dev/null 2>&1 ; then
            if $_dir ; then
                mkdir "$_t"
            else
-               >"$_t"
+               >"$_t"
            fi
        )
        echo "$_t"