File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ async function loadStatus(promptIfEmpty) {
8383 // nothing
8484 }
8585 if ( status . selectedEngines . length > Object . keys ( status . installed ) . length ) {
86- logger . fatal ( 'Some engines were not installed. This is a bug, please report it. ' ) ;
86+ logger . fatal ( 'Some engines were not installed.' ) ;
8787 process . exitCode = 1 ;
8888 }
8989 fs . writeFileSync ( STATUS_PATH , JSON . stringify ( status , null , 2 ) ) ;
Original file line number Diff line number Diff line change @@ -52,13 +52,15 @@ function guessPlatform() {
5252 return `${ platform } ${ arch } ` ;
5353}
5454
55- function unzip ( from , to ) {
56- return extractZip ( from , { dir : to } ) ;
55+ async function unzip ( from , to ) {
56+ await rmdir ( to ) ;
57+ await extractZip ( from , { dir : to } ) ;
5758}
5859
5960async function untar ( from , to ) {
61+ await rmdir ( to ) ;
6062 await ensureDirectory ( to ) ;
61- return tar . extract ( { file : from , cwd : to } ) ;
63+ await tar . extract ( { file : from , cwd : to } ) ;
6264}
6365
6466module . exports = {
You can’t perform that action at this time.
0 commit comments