FIX: SCP - Execute command from command line (execute in current directory)

This commit is contained in:
Alexander Koblov 2018-05-11 20:26:04 +00:00
commit 8b4743fb3b

View file

@ -437,7 +437,8 @@ begin
Result:= OpenChannel;
if Result then
begin
Result:= SendCommand(Command);
DoStatus(False, Command);
Result:= SendCommand('cd ' + EscapeNoQuotes(FCurrentDir) + ' && ' + Command);
if Result then
begin
Result:= DataRead(FDataStream);