From b4043c28b36aaf8deb0bcd017a4f977f1f78566f Mon Sep 17 00:00:00 2001 From: Adrian Stevens Date: Sun, 26 May 2024 12:38:44 -0700 Subject: [PATCH] Make config check case insensitive --- Source/v2/Meadow.CLI/Commands/Current/App/AppTools.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/v2/Meadow.CLI/Commands/Current/App/AppTools.cs b/Source/v2/Meadow.CLI/Commands/Current/App/AppTools.cs index 78abd6c0..00635783 100644 --- a/Source/v2/Meadow.CLI/Commands/Current/App/AppTools.cs +++ b/Source/v2/Meadow.CLI/Commands/Current/App/AppTools.cs @@ -63,7 +63,10 @@ internal static async Task 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) {