mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 19:44:02 +08:00
#17790: Recipe switch for CLI setup is case sensitive
--HG-- branch : 1.x
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user