logo

sshpaste

Simple paste script to a server having SSH+HTTP daemons
commit: bdba142e875c20a771a9aac793e553843b7d0c8b
parent: ccb2132c2296cdf983467b5fca1464028991ed62
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  6 May 2018 22:01:49 +0200

sshpaste: Add hint when reading stdin from a TTY

Diffstat:

Msshpaste1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/sshpaste b/sshpaste @@ -48,6 +48,7 @@ sshpaste_command() { sshpaste_stdin() { temporary_file="$(mktemp -t sshpaste_stdin.XXXXX.txt)" + tty 2&1 >/dev/null && echo "Reading from stdin, press EOF(^D) when you're done" cat - > "${temporary_file}" || die "reading from stdin" sshpaste_file "${temporary_file}" rm -fr ${temporary_file}