Skip to content

Commit 7c8654b

Browse files
committed
fix reading version for CI context
1 parent c0d327b commit 7c8654b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/subfun/printCreditsCppBids.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
function printCreditsCppBids(cfg)
22

3-
version = fileread(fullfile(fileparts(mfilename('fullpath')), ...
4-
'..', '..', 'version.txt'));
3+
try
4+
version = fileread(fullfile(fileparts(mfilename('fullpath')), ...
5+
'..', '..', 'version.txt'));
6+
catch
7+
version = 'v1.0.0';
8+
end
59

610
verbose = true;
711
if ~isempty(cfg) && isfield(cfg, 'verbose') && ~isempty(cfg.verbose)

0 commit comments

Comments
 (0)