MT#14067 Add quotes for sftp path (allow path with spaces)

Change-Id: I707cabc1acc5799aa40ba0d6b8e7b9c6fcfd47e8
changes/12/2212/1
Alexander Lutay 11 years ago
parent db37acebd0
commit 53a0e9936c

@ -12,7 +12,7 @@ sub sftp_sh {
print "### transferring $src to $user\@$host:$port at $dir/$fname via sftp-sh\n";
my $fh = File::Temp->new(UNLINK => 1);
print $fh "cd $dir\nput $src $fname";
print $fh "cd '$dir'\nput '$src' $fname";
my $cmd = "/usr/bin/sftp -b ".$fh->filename." -P $port -i $key $user\@$host";
print "### using command $cmd\n";

Loading…
Cancel
Save