Clarified script and edited man page - 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 ea86129164b490267a2980d73361a6dbbea308c2 DIR parent 85503f58e13e10b2b34e3a00a659b896d4aea33c HTML Author: jared <jared@fastmail.com> Date: Sat, 30 Jan 2021 14:36:30 -0500 Clarified script and edited man page Hello and thank you for the nice tool! I had some trouble understanding the usage due to some discrepancies with the man page or comments and the code. I believe this small patch will help new users (like me) to not be confused. - The flags in usage() still showed [-n], this is no longer used - Removed inaccurate reference to dry-run in man page - Missing reference to 3rd arg in comments of copy_files() Diffstat: M drist | 3 ++- M drist.1 | 7 ------- 2 files changed, 2 insertions(+), 8 deletions(-) --- DIR diff --git a/drist b/drist @@ -8,12 +8,13 @@ TRUNCATE=0 TEMPDIR="" usage() { - echo "$0 [-n] [-d] [-s [-e sudo|doas]] server [...]" + echo "$0 [-p] [-d] [-s [-e sudo|doas]] server [...]" exit 0 } # $1 = directory name # $2 = remote server +# $3 = tempdir copy_files() { # -l = keep symlink / -D = special device if [ -d "${1}" ] DIR diff --git a/drist.1 b/drist.1 @@ -6,7 +6,6 @@ .Nd dumb remote installer shell tool, a remote deployment tool .Sh SYNOPSIS .Op Fl p -.Op Fl n .Op Fl d .Op Fl s Op Fl e Ar sudo|doas .Ar destination @@ -17,12 +16,6 @@ to use persistent ssh connection, allowing to ssh only once for the differents steps. This uses ControlMaster feature from .Xr ssh 1 . -.It Op Fl n -to simulate. -Tells -.Nm -to show what will happens if it runs. -This will make a ssh connection to check the remote hostname. .It Op Fl d to truncate reported hostname. Tells