Skip to content

Commit

Permalink
added file type check on macosx (if file is "dylib" AKA has "dylib" e…
Browse files Browse the repository at this point in the history
…xtension)
  • Loading branch information
moljac committed Sep 19, 2023
1 parent 6be6153 commit e2b59d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cake.Core/IO/FileExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static IEnumerable<string> ReadLines(this IFile file, System.Text.Encodin
/// </remarks>
public static bool IsClrAssembly(this IFile file)
{
if (!file.Exists || file.Length < 365)
if (!file.Exists || file.Length < 365 || file.Path.GetExtension().ToLower().Equals("dylib"))
{
return false;
}
Expand Down

0 comments on commit e2b59d6

Please sign in to comment.