logo

sshpaste

Simple paste script to a server having SSH+HTTP daemons
commit: 2ceee33fecea540eb45e72c5083d1d2a30c92464
parent: 603108f7b665f60f8d5211da55d57d1b7a51b790
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 30 Apr 2018 01:41:15 +0200

{sshpaste,README}: Usage formatting

Diffstat:

MREADME4++--
Msshpaste4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README b/README @@ -6,8 +6,8 @@ A mostly POSIX shell script inspired by wgetpaste but for pushing to your own se Please modify target_ssh and target_www to the appropriate servers and paths. ``` -sshpaste: [options] [file(s)] - Options: +Usage: sshpaste [options] [file(s)] +Options: -x read input from clipboard (requires xclip) -c COMMAND paste COMMAND and the output of COMMAND ``` diff --git a/sshpaste b/sshpaste @@ -47,8 +47,8 @@ sshpaste_command() { } sshpaste_usage() { - echo "${1}: [options] [file(s)]" >&2 - echo ' Options:' >&2 + echo "Usage: ${1} [options] [file(s)]" >&2 + echo 'Options:' >&2 echo ' -x read input from clipboard (requires xclip)' >&2 echo ' -c COMMAND paste COMMAND and the output of COMMAND' >&2 }