logo

sshpaste

Simple paste script to a server having SSH+HTTP daemons
commit: ecc99b4d6b821d1d9e6d36cdba1fc90f622beb7a
parent: c1bc620e18eb804ee71fe4328d113b9c9e9a1bad
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 29 Apr 2018 10:53:30 +0200

sshpaste: Make the output more reusable by other commands

Diffstat:

Msshpaste2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sshpaste b/sshpaste @@ -20,7 +20,7 @@ sshpaste_file() { target_name=$(basename "$1") chmod +r "$1" if scp "$1" "${target_ssh}-${target_name}" - then echo "Uploaded at: ${target_www}-${target_name}" + then echo "${target_www}-${target_name}" else die "Failed uploading $1" fi }