Commit f0599b20 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug caused by one letter files (see https://github.com/DynareTeam/dynare/pull/1040).

parent d57c2b0e
......@@ -41,7 +41,8 @@ for f=1:length(dd)
flist = { flist{:} r{:} };
else
% Filter out files without m extension.
if isequal(dd(f).name(end-1:end),'.m')
[make, my, ext] = fileparts(dd(f).name);
if isequal(ext, '.m')
flist{length(flist)+1} = [basedir filesep dd(f).name];
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment