File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ async function installDependencies(dirName) {
3939
4040async function initGit ( dirName ) {
4141 console . log ( `Setting up Git ...` ) ;
42- await fs . removeSync ( `${ dirName } /.git` ) ;
42+ fs . removeSync ( `${ dirName } /.git` ) ;
4343 await run ( `cd ${ dirName } && git init && git add . && git commit -m "New Stackbit project"` ) ;
4444}
4545/**
@@ -148,17 +148,17 @@ async function cloneExample() {
148148 // Checkout just the example dir.
149149 await run ( `cd ${ tmpDir } && git sparse-checkout set ${ args . example } ` ) ;
150150 // move out into a new directory.
151- await fs . moveSync ( `${ tmpDir } /${ args . example } ` , dirName ) ;
151+ fs . moveSync ( `${ tmpDir } /${ args . example } ` , dirName ) ;
152152 // Delete the clone.
153- await fs . removeSync ( tmpDir ) ;
153+ fs . removeSync ( tmpDir ) ;
154154
155155 // Project Setup
156156 await installDependencies ( dirName ) ;
157157 await initGit ( dirName ) ;
158158 } catch ( err ) {
159159 console . error ( err ) ;
160- if ( fs . existsSync ( dirName ) ) await fs . removeSync ( dirName ) ;
161- if ( fs . existsSync ( tmpDir ) ) await fs . removeSync ( tmpDir ) ;
160+ if ( fs . existsSync ( dirName ) ) fs . removeSync ( dirName ) ;
161+ if ( fs . existsSync ( tmpDir ) ) fs . removeSync ( tmpDir ) ;
162162 process . exit ( 1 ) ;
163163 }
164164
You can’t perform that action at this time.
0 commit comments