From: Martin Schwenke Date: Thu, 13 Jul 2017 02:52:39 +0000 (+1000) Subject: ctdb-scripts: Avoid shellcheck warning SC2188 (redirect without command) X-Git-Tag: tdb-1.3.15~108 X-Git-Url: http://git.samba.org/samba.git/?p=vlendec%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=db014a51295ca66f4aee058dd8ee63f0beea5527 ctdb-scripts: Avoid shellcheck warning SC2188 (redirect without command) This makes the code look deliberate instead like something has been accidentally omitted. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/config/functions b/ctdb/config/functions index 5df52c2be5a..1131229ebb9 100755 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -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"