Skip to content

Commit

Permalink
Merge pull request #964 from CombustionToolbox/oop
Browse files Browse the repository at this point in the history
Solve: minor bug Installation from GitHub remote server
  • Loading branch information
AlbertoCuadra authored Aug 3, 2024
2 parents 85cd853 + 69397f8 commit 6c67a25
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions INSTALL.m
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,20 @@ function installPackage(action, type, packageDst)
% Get type of installation/uninstallation
[FLAG_PATH, FLAG_GUI] = getType(type);

% Generate bash script
bashScriptFile = generateBash(packageDst, action);
% Add/remove Combustion Toolbox in MATLAB startup.m file
try
% Generate bash script
bashScriptFile = generateBash(packageDst, action);

% Execute bash script
system(['./' bashScriptFile]);

% Execute bash script
system(['./' bashScriptFile]);
% Remove the bash script
delete(bashScriptFile);
catch
fprintf('Error including Combustion Toolbox path in MATLAB startup.m file');
end

% Remove the bash script
delete(bashScriptFile);

% Move local path to package destination
cd(packageDst);

Expand Down

0 comments on commit 6c67a25

Please sign in to comment.