#17790: Recipe switch for CLI setup is case sensitive

--HG--
branch : 1.x
This commit is contained in:
Suha Can
2011-05-09 13:03:57 -07:00
parent 773121864b
commit 7ba079f40c

View File

@@ -200,7 +200,7 @@ namespace Orchard.Setup.Services {
cultureManager.AddCulture("en-US");
var recipeManager = environment.Resolve<IRecipeManager>();
executionId = recipeManager.Execute(Recipes().Where(r => r.Name == context.Recipe).FirstOrDefault());
executionId = recipeManager.Execute(Recipes().Where(r => r.Name.Equals(context.Recipe, StringComparison.OrdinalIgnoreCase)).FirstOrDefault());
//null check: temporary fix for running setup in command line
if (HttpContext.Current != null) {