Skip to content

Commit

Permalink
Update cfg_util.m
Browse files Browse the repository at this point in the history
  • Loading branch information
teddychao committed Aug 30, 2024
1 parent 450b5a2 commit 0ac4298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ext/matlabbatch/cfg_util.m
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,9 @@
cfg_message('matlabbatch:fopen', 'Failed to open ''%s'' for writing:\n%s', jobfile, msg);
end
fprintf(fid, '%%-----------------------------------------------------------------------\n');
fprintf(fid, '%% Job saved on %s by %s (rev %s)\n', datestr(now), mfilename, rev);
if exist('rev','var')
fprintf(fid, '%% Job saved on %s by %s (rev %s)\n', datestr(now), mfilename, rev);
end
versions = cfg_get_defaults('versions');
vtags = fieldnames(versions);
for k = 1:numel(vtags)
Expand Down

0 comments on commit 0ac4298

Please sign in to comment.