Skip to content

Commit 1d7e7bb

Browse files
committed
CrossOver native call improvements...
1 parent 5f0c24f commit 1d7e7bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

External/Tools/FDBuild/Building/ProcessRunner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class ProcessRunner
1313
public static bool Run(string fileName, string arguments, bool ignoreExitCode, bool mergeErrors)
1414
{
1515
// CrossOver native call
16-
Boolean isNative = fileName == "FDEXE.sh";
16+
Boolean isNative = fileName == "FDEXE.sh" || Path.GetExtension(fileName) == ".command";
1717

1818
Process process = new Process();
1919
process.StartInfo.UseShellExecute = false;
@@ -29,7 +29,7 @@ public static bool Run(string fileName, string arguments, bool ignoreExitCode, b
2929

3030
// capture output in a separate thread
3131
LineFilter stdoutFilter = new LineFilter(process.StandardOutput, Console.Out, false);
32-
LineFilter stderrFilter = new LineFilter(process.StandardError, isNative ? Console.Out : Console.Error, mergeErrors);
32+
LineFilter stderrFilter = new LineFilter(process.StandardError, Console.Error, mergeErrors);
3333

3434
Thread outThread = new Thread(new ThreadStart(stdoutFilter.Filter));
3535
Thread errThread = new Thread(new ThreadStart(stderrFilter.Filter));
512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)