Skip to content

Commit

Permalink
Merge pull request #3 from kleinerm/master
Browse files Browse the repository at this point in the history
Pull the 3.0.10 RC3 with some bug fix to PsychJava installation.
  • Loading branch information
kleinerm committed May 28, 2012
2 parents 2518639 + e713cec commit 5f82e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Psychtoolbox/PsychtoolboxPostInstallRoutine.m
Expand Up @@ -477,10 +477,10 @@ function PsychtoolboxPostInstallRoutine(isUpdate, flavor)
% Look for the first instance of PsychJava in the classpath and
% replace it with the new one. All other instances will be
% ignored.
if isempty(strfind('PsychJava', fileContents{i}))
if isempty(strfind(fileContents{i}, 'PsychJava'))
newFileContents{j, 1} = fileContents{i}; %#ok<AGROW>
j = j + 1;
elseif ~isempty(strfind('PsychJava', fileContents{i})) & ~pathInserted %#ok<AND2>
elseif ~isempty(strfind(fileContents{i}, 'PsychJava')) & ~pathInserted %#ok<AND2>
newFileContents{j, 1} = path_PsychJava; %#ok<AGROW>
pathInserted = 1;
j = j + 1;
Expand Down

0 comments on commit 5f82e14

Please sign in to comment.