Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
BeanCheeseBurrito committed Aug 27, 2023
1 parent e091e0b commit a1a2350
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Flecs.NET.Bindgen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ string GetMacOsHeaders()
process.WaitForExit();

string path = process.StandardOutput.ReadToEnd();
DirectoryInfo directoryInfo = new(path);

Console.WriteLine(path);

if (!Directory.Exists(path))
if (!directoryInfo.Exists)
throw new DirectoryNotFoundException("Couldn't find system headers. Install XCode.");

return path + "/usr/include";
Expand Down

0 comments on commit a1a2350

Please sign in to comment.