Skip to content

Commit

Permalink
fix: findGECKOroot
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Mar 5, 2023
1 parent 3ccac65 commit d113678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geckomat/utilities/findGECKOroot.m
Expand Up @@ -10,14 +10,14 @@
geckoPath = ST(strcmp({ST.name},'findGECKOroot')).file;
rootFound = 0;
while rootFound == 0
isRoot = exist(fullfile(geckoPath,'GECKO.png'),'file');
isRoot = exist(fullfile(geckoPath,'GECKOInstaller.m'),'file');
if isRoot == 2
rootFound = 1;
else
ravenPathOld = geckoPath;
geckoPath = fileparts(geckoPath);
if strcmp(ravenPathOld,geckoPath)
error('Cannot find the GECKO root directory. Make sure you have not removed the GECKO.png file from your GECKO installation.')
error('Cannot find the GECKO root directory. Make sure you have not removed the GECKOInstaller.m file from your GECKO installation.')
end
end
end

0 comments on commit d113678

Please sign in to comment.