File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ async function main() {
2727 await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) )
2828 console . clear ( )
2929
30- let tries = 5
30+ let tries = 1
3131 while ( tries -- ) {
3232 try {
3333 const sessionID = "Rocket.Chat" // uuid()
3434
35- await Algorithms . execCommand ( `git clone ${ REPO_URI } ${ sessionID } ` )
35+ // await Algorithms.execCommand(`git clone ${REPO_URI} ${sessionID}`)
3636 {
3737 const codebase = new Codebase ( sessionID , new FileProcessor ( ) , 1 )
3838 await codebase . process ( )
@@ -42,10 +42,11 @@ async function main() {
4242
4343 await insertDataIntoDB ( codebase . dataDirPath )
4444 }
45- await Algorithms . execCommand ( `rm -rf ${ sessionID } ` )
45+ // await Algorithms.execCommand(`rm -rf ${sessionID}`)
4646
4747 break
48- } catch {
48+ } catch ( e ) {
49+ throw e
4950 console . error ( "Retrying" , tries )
5051 }
5152 }
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export class Codebase {
4646
4747 /* Handle data directory */
4848 if ( removeExisting && existsSync ( this . _dataDirPath ) ) rmSync ( this . _dataDirPath , { recursive : true } )
49- // mkdirSync(this._dataDirPath)
49+ mkdirSync ( this . _dataDirPath )
5050 }
5151
5252 private prepareFilesMetadata ( ) {
You can’t perform that action at this time.
0 commit comments