mirror of
https://github.com/strapi/strapi.git
synced 2025-10-17 11:08:14 +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) {
|
if (scope.templateBranch) {
|
||||||
await downloadGithubRepo(rootPath, {
|
await retry(
|
||||||
owner,
|
() =>
|
||||||
repo,
|
downloadGithubRepo(rootPath, {
|
||||||
branch: scope.templateBranch,
|
owner,
|
||||||
subPath: scope.templatePath,
|
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(
|
await retry(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user