mirror of
https://github.com/strapi/strapi.git
synced 2025-10-15 18:16:24 +00:00
fix: template missing return
This commit is contained in:
parent
9cb35c0a30
commit
ea6752c0cc
@ -75,12 +75,23 @@ export async function copyTemplate(scope: Scope, rootPath: string) {
|
||||
}
|
||||
|
||||
if (scope.templateBranch) {
|
||||
await downloadGithubRepo(rootPath, {
|
||||
owner,
|
||||
repo,
|
||||
branch: scope.templateBranch,
|
||||
subPath: scope.templatePath,
|
||||
});
|
||||
await retry(
|
||||
() =>
|
||||
downloadGithubRepo(rootPath, {
|
||||
owner,
|
||||
repo,
|
||||
branch: scope.templateBranch,
|
||||
subPath: scope.templatePath,
|
||||
}),
|
||||
{
|
||||
retries: 3,
|
||||
onRetry(err, attempt) {
|
||||
console.log(`Retrying to download the template. Attempt ${attempt}. Error: ${err}`);
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
await retry(
|
||||
|
Loading…
x
Reference in New Issue
Block a user