]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tools: Whitespace fixups
authorMartin Schwenke <martin@meltin.net>
Wed, 3 Jun 2020 23:48:03 +0000 (09:48 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 16 Jul 2020 05:28:42 +0000 (05:28 +0000)
Drop some unnecessary whitespace and re-indent push().

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

index 02e49c1f583c719d98b95636486f12a1af2d66c0..95e67d2c0aab65149888949f933d4984f5a06888 100755 (executable)
 # 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 <http://www.gnu.org/licenses/>.
 
@@ -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
 }
 
 ######################################################################