Browse Source

fix CI script

Juliette ELSASS 8 months ago
parent
commit
db8dcb1756
1 changed files with 5 additions and 4 deletions
  1. 5 4
      .github/workflows/make.pas

+ 5 - 4
.github/workflows/make.pas

@@ -50,7 +50,7 @@ uses
         if Exec(Line) then
         if Exec(Line) then
 		begin
 		begin
 		  if Result <> EmptyStr then
 		  if Result <> EmptyStr then
-		    Resut += LineEnding;
+		    Result += LineEnding;
           Result += Line;
           Result += Line;
 		end;
 		end;
       Free;
       Free;
@@ -167,15 +167,16 @@ uses
   end;
   end;
   
   
   procedure RetrieveSubmodules;
   procedure RetrieveSubmodules;
+  var CommandOutput: string;
   begin
   begin
     if FileExists('.gitmodules') then
     if FileExists('.gitmodules') then
     if RunCommand('git', ['submodule', 'update', '--init',
     if RunCommand('git', ['submodule', 'update', '--init',
-      '--force', '--remote'], Result, [poStderrToOutPut]) then
-      OutLog(etInfo, Result)
+      '--force', '--remote'], CommandOutput, [poStderrToOutPut]) then
+      OutLog(etInfo, CommandOutput)
     else
     else
     begin
     begin
       ExitCode += 1;
       ExitCode += 1;
-      OutLog(etError, Result);
+      OutLog(etError, CommandOutput);
     end;
     end;
   end;
   end;