diff --git a/static/mmci-cli/lib/get_steadystate_file.m b/static/mmci-cli/lib/get_steadystate_file.m index 143fd040..11026044 100644 --- a/static/mmci-cli/lib/get_steadystate_file.m +++ b/static/mmci-cli/lib/get_steadystate_file.m @@ -13,7 +13,9 @@ function get_steadystate_file(modelname,d_version,workpath) all = all(3:end); for i =1:size(all,1) %if file is folder and has name steadystate - if (all(i).isdir) && (contains(all(i).name,'steadystate')==true) + %if (all(i).isdir) && (contains(all(i).name,'steadystate')==true) + %if (all(i).isdir) && (contains(all(i).name,'steadystate')==true) + if all(i).isdir && ~isempty(strfind(all(i).name, 'steadystate')) cd 'steadystate' inside = dir; inside = inside(3:end);