Changeset 11535


Ignore:
Timestamp:
02/24/12 15:41:34 (13 years ago)
Author:
Eric.Larour
Message:

More nuanced way of getting rid of the trailing "\" or "/"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/utils/Shell/issmtier.m

    r11488 r11535  
    99else
    1010        ISSM_TIER =getenv('ISSM_TIER_WIN');
    11         ISSM_TIER = ISSM_TIER(1:end-1); %shave off the last '/'
     11        if strcmpi(ISSM_TIER(end),'/') | strcmpi(ISSM_TIER(end),'\'),
     12                ISSM_TIER = ISSM_TIER(1:end-1); %shave off the last '/'
     13        end
    1214end
    1315
Note: See TracChangeset for help on using the changeset viewer.