logo

sshpaste

Simple paste script to a server having SSH+HTTP daemons
commit: c4b3610c97e15aff9f9e636c5b3e766a3644ebcf
parent: 54ba77a84470388bbdab9a8ae4b0ab9aa59424e0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  7 Nov 2018 23:28:10 +0100

sshpaste: Fix auto ${target_name}.txt

Diffstat:

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

diff --git a/sshpaste b/sshpaste @@ -26,7 +26,7 @@ sshpaste_file() { chmod +r "$1" - file -i "$1" 2>&1 >/dev/null | grep 'text/' && target_name="${target_name}.txt" + file -i "$1" 2>/dev/null | grep 'text/' && target_name="${target_name}.txt" if scp -q "$1" "${target_ssh}-'${target_name}'" then echo "${target_www}-${target_name}"