From ea86129164b490267a2980d73361a6dbbea308c2 Mon Sep 17 00:00:00 2001 From: jared Date: Sat, 30 Jan 2021 14:36:30 -0500 Subject: [PATCH] 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() --- drist | 3 ++- drist.1 | 7 ------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drist b/drist index be4edcd..03286fa 100755 --- 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}" ] diff --git a/drist.1 b/drist.1 index 3f93598..30f305b 100644 --- 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 -- 2.45.2