Skip to content

Commit

Permalink
Make config check case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed May 26, 2024
1 parent 1584521 commit b4043c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/v2/Meadow.CLI/Commands/Current/App/AppTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ internal static async Task<bool> TrimApplication(string path,

if (configuration is not null)
{
file = candidates.Where(c => c.DirectoryName.Contains(configuration)).OrderByDescending(c => c.LastWriteTime).First();
file = candidates
.Where(c => c.DirectoryName.IndexOf(configuration, StringComparison.OrdinalIgnoreCase) >= 0)
.OrderByDescending(c => c.LastWriteTime)
.First();

if (file == null)
{
Expand Down

0 comments on commit b4043c2

Please sign in to comment.