Skip to content

Commit

Permalink
tweaked error checker for unix style
Browse files Browse the repository at this point in the history
  • Loading branch information
JonKing93 committed Aug 21, 2020
1 parent 8fed919 commit bf62f79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 1. Grid files/error_check.m
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@
fprintf('Renamed sources\n');

% Check file path
if ~strcmp(newfile, grid.source.file(1,:))
folders = split(grid.source.file(1,:),'/');
if ~strcmp(newfile, fullfile(folders{:}) )
error('bad');
end
fprintf('Checked file name\n');
Expand Down

0 comments on commit bf62f79

Please sign in to comment.