Fix Which not returning the found executable on success
This commit is contained in:
@@ -68,8 +68,11 @@ namespace Flax.Build.Platforms
|
|||||||
string path = proc.StandardOutput.ReadLine();
|
string path = proc.StandardOutput.ReadLine();
|
||||||
Log.Verbose(string.Format("which {0} exit code: {1}, result: {2}", name, proc.ExitCode, path));
|
Log.Verbose(string.Format("which {0} exit code: {1}, result: {2}", name, proc.ExitCode, path));
|
||||||
|
|
||||||
if (proc.ExitCode == 0 && string.IsNullOrEmpty(proc.StandardError.ReadToEnd()))
|
if (proc.ExitCode == 0)
|
||||||
{
|
{
|
||||||
|
string err = proc.StandardError.ReadToEnd();
|
||||||
|
if (!string.IsNullOrEmpty(err))
|
||||||
|
Log.Verbose(string.Format("which stderr: {0}", err));
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user