Skip to content

Commit

Permalink
fix: 修复cli
Browse files Browse the repository at this point in the history
  • Loading branch information
WangJunZzz committed Dec 23, 2024
1 parent 37034e2 commit 6d234f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public async Task ExecuteAsync(CommandLineArgs commandLineArgs)

context.OutputFolder = outputFolder;

if (_cliOptions.Templates.FirstOrDefault(e => e.Name == template) != null)
if (_cliOptions.Templates.FirstOrDefault(e => e.Name == template) != null && template =="local")
{
var source = commandLineArgs.Options.GetOrNull(CommandOptions.Source.Short, CommandOptions.Source.Long);
context.TemplateFolder = source;
Expand Down

0 comments on commit 6d234f1

Please sign in to comment.