Remove obsolete comment and fix whitespace. - drist - a remote deployment tool HTML git clone git://bitreich.org/drist/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/drist/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 8be8f6813d68a88b6395f8c27bfa082137772f92 DIR parent 7c346ee39c6eb202a1851bca9ab1a8cbfb770573 HTML Author: parazyd <parazyd@dyne.org> Date: Fri, 7 Jun 2019 14:08:36 +0200 Remove obsolete comment and fix whitespace. Diffstat: M drist | 3 +-- M drist.1 | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) --- DIR 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/^/ /' DIR 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.