~solene/drist

ea86129164b490267a2980d73361a6dbbea308c2 — jared 3 years ago 85503f5 v2.04
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()
2 files changed, 2 insertions(+), 8 deletions(-)

M drist
M drist.1
M drist => drist +2 -1
@@ 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}" ]

M drist.1 => drist.1 +0 -7
@@ 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