Skip to content

Commit fba84c8

Browse files
authored
fix: prevent crash in Custom Action when executable path is missing (#646)
1 parent 0676261 commit fba84c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Commands/ExecuteCustomAction.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public static void Run(string repo, string file, string args, Action<string> out
4545
try
4646
{
4747
proc.Start();
48+
proc.BeginOutputReadLine();
49+
proc.BeginErrorReadLine();
50+
proc.WaitForExit();
4851
}
4952
catch (Exception e)
5053
{
@@ -54,9 +57,6 @@ public static void Run(string repo, string file, string args, Action<string> out
5457
});
5558
}
5659

57-
proc.BeginOutputReadLine();
58-
proc.BeginErrorReadLine();
59-
proc.WaitForExit();
6060
proc.Close();
6161
}
6262
}

0 commit comments

Comments
 (0)