Skip to content

Commit 772a1ef

Browse files
committed
[ci] fix octave failed test
1 parent cff529a commit 772a1ef

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jsoncache.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@
5050
%
5151

5252
pathname = getenv('HOME');
53-
cachepath = {[pwd filesep '.neurojson'], [pathname filesep '.neurojson']};
53+
cachepath = {[pwd filesep '.neurojson']};
54+
if (strcmp(pathname, pwd) == 0)
55+
cachepath{end + 1} = [pathname filesep '.neurojson'];
56+
end
57+
5458
if (ispc)
5559
cachepath{end + 1} = [getenv('PROGRAMDATA') filesep 'neurojson'];
5660
elseif (ismac)
@@ -61,8 +65,6 @@
6165
cachepath{end + 1} = '/var/cache/neurojson';
6266
end
6367

64-
cachepath = unique(cachepath, 'stable');
65-
6668
if (nargin < 4)
6769
domain = 'io';
6870
end

0 commit comments

Comments
 (0)