Skip to content

Commit 3cb91ea

Browse files
committed
BUG: revert issmscpin to previous version
1 parent d0b3440 commit 3cb91ea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/m/os/issmscpin.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ function issmscpin(host, login,port,path, packages)
2323
else
2424
%just use standard unix scp string to copy multiple files using scp:
2525
if numel(packages)==1,
26-
fileliststr=packages{1};
26+
string=packages{1};
2727
else
28-
fileliststr='';
28+
string='\{';
2929
for i=1:numel(packages)-1,
30-
fileliststr=[fileliststr filelist{i} ' '];
30+
string=[string packages{i} ','];
3131
end
32-
fileliststr=[fileliststr filelist{end}];
32+
string=[string packages{end} '\}'];
3333
end
3434

3535
if port,
36-
eval(['!scp -OT -P ' num2str(port) ' ' login '@localhost:"' fileliststr '" .']);
36+
eval(['!scp -P ' num2str(port) ' ' login '@localhost:' path '/' string ' ./']);
3737
else
38-
eval(['!scp -OT ' login '@' host ':"' fileliststr '" .']);
38+
eval(['!scp ' login '@' host ':' path '/' string ' ./']);
3939
end
4040

4141
%check scp worked

0 commit comments

Comments
 (0)