From: Martin Schwenke Date: Wed, 3 Jun 2020 23:48:03 +0000 (+1000) Subject: ctdb-tools: Whitespace fixups X-Git-Tag: talloc-2.3.2~1104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00eb88b241c1451b23fdd86ec8a391c07a20fa2a;p=thirdparty%2Fsamba.git ctdb-tools: Whitespace fixups Drop some unnecessary whitespace and re-indent push(). Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tools/onnode b/ctdb/tools/onnode index 02e49c1f583..95e67d2c0aa 100755 --- a/ctdb/tools/onnode +++ b/ctdb/tools/onnode @@ -14,12 +14,12 @@ # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. - + # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - + # You should have received a copy of the GNU General Public License # along with this program; if not, see . @@ -254,19 +254,19 @@ get_nodes () done } -push() +push () { - local host="$1" - local files="$2" - - local f - for f in $files ; do - $verbose && echo "Pushing $f" - case "$f" in - /*) rsync "$f" "[${host}]:${f}" ;; - *) rsync "${PWD}/${f}" "[${host}]:${PWD}/${f}" ;; - esac - done + local host="$1" + local files="$2" + + local f + for f in $files ; do + $verbose && echo "Pushing $f" + case "$f" in + /*) rsync "$f" "[${host}]:${f}" ;; + *) rsync "${PWD}/${f}" "[${host}]:${PWD}/${f}" ;; + esac + done } ######################################################################