logo

sshpaste

Simple paste script to a server having SSH+HTTP daemons
commit: af713d400580b2152617dba59b24013899498520
parent: 2ceee33fecea540eb45e72c5083d1d2a30c92464
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  5 May 2018 06:24:02 +0200

sshpaste: Fix uploading files with space(s) in them

Diffstat:

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

diff --git a/sshpaste b/sshpaste @@ -24,7 +24,7 @@ sshpaste_file() { [ -s "$1" ] || die "$1 is empty" target_name=$(basename "$1") chmod +r "$1" - if scp -q "$1" "${target_ssh}-${target_name}" + if scp -q "$1" "${target_ssh}-${target_name@Q}" then echo "${target_www}-${target_name}" else die "Failed uploading $1" fi