Skip to content

Commit

Permalink
Import: attempt to fix import nesting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
themitosan committed Dec 9, 2024
1 parent cb3151c commit c0a162c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,18 @@ export async function grpp_batchImport(urlList:string){

// Clear screen, create url array and starrt clone process
grpp_displayMainLogo(!0);
const urlArray = urlList.split('\n');
const
originalCwd = structuredClone(process.cwd()),
urlArray = urlList.split('\n');
for (const url of urlArray){
if (url.length > 0){
createLogEntry(grpp_convertLangVar(langDatabase.import.batchCurrentRepo, [(urlArray.indexOf(url) + 1), urlArray.length, url]));
await grpp_startImport(url);
process.chdir(originalCwd);
}
}

}

// Export module
export * from './import';
export * from './import';

0 comments on commit c0a162c

Please sign in to comment.