bitreich-drist

fork of bitreich.org/drist
git clone git://git.pyratebeard.net/bitreich-drist.git
Log | Files | Refs | README | LICENSE

commit 8be8f6813d68a88b6395f8c27bfa082137772f92
parent 7c346ee39c6eb202a1851bca9ab1a8cbfb770573
Author: parazyd <parazyd@dyne.org>
Date:   Fri,  7 Jun 2019 14:08:36 +0200

Remove obsolete comment and fix whitespace.

Diffstat:
Mdrist | 3+--
Mdrist.1 | 2+-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drist b/drist @@ -86,14 +86,13 @@ remote_script() { # $1 = directory name # $2 = remote server -# it uses rm -v which is not POSIX compliant but most systems have it delete_files() { if [ -d "${1}" ] then LIST=$(mktemp /tmp/drist-rsync.XXXXXXXXXX) if [ -f "$LIST" ] then - printf 'Removing files from folder "%s":\n' "$1" + printf 'Removing files from folder "%s":\n' "$1" find "$1" -type f | sed 's/"/\\&/' | \ awk -v path="${1}" '{ printf "\"%s\" ",substr($0,length(path)+1)}' | \ tee "${LIST}" | sed 's/^/ /' diff --git a/drist.1 b/drist.1 @@ -19,7 +19,7 @@ This uses ControlMaster feature from .Op Fl n to simulate. -Tells +Tells .Nm to show what will happens if it runs. This will make a ssh connection to check the remote hostname.