Changeset 11344


Ignore:
Timestamp:
02/07/12 13:36:44 (13 years ago)
Author:
Mathieu Morlighem
Message:

fixed problem when issmscpin is called for only one file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/OS/issmscpin.m

    r9369 r11344  
    5252                %just use standard unix scp
    5353                %string to copy multiple files using scp:
    54                 string='\{';
    55                 for i=1:numel(packages)-1,
    56                         string=[string packages{i} ','];
     54                if numel(packages)==1,
     55                        string=packages{1};
     56                else
     57                        string='\{';
     58                        for i=1:numel(packages)-1,
     59                                string=[string packages{i} ','];
     60                        end
     61                        string=[string packages{end} '\}'];
    5762                end
    58                 string=[string packages{end} '\}'];
    5963
    6064
Note: See TracChangeset for help on using the changeset viewer.