File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,10 @@ const apps = {
177
177
} ;
178
178
179
179
function checkAppVersion ( minimalVersion , app ) {
180
- const curApp = apps [ app ] ?? apps [ 'node' ] ;
180
+ let curApp = apps [ app ] ;
181
+ if ( apps [ app ] === undefined ) {
182
+ curApp = apps [ 'node' ] ;
183
+ }
181
184
return new Promise ( ( resolve , reject ) => {
182
185
exec ( curApp . command , ( err , stdout ) => {
183
186
const version = stdout . trim ( ) ;
@@ -239,7 +242,6 @@ function reportError(error) {
239
242
240
243
await installPackages ( ) . catch ( ( reason ) => reportError ( reason ) ) ;
241
244
await removeFilesFromDirectory ( 'bin/' ) . catch ( ( reason ) => reportError ( reason ) ) ;
242
- await removeFilesFromDirectory ( 'public/assets/logo.png' ) . catch ( ( reason ) => reportError ( reason ) ) ;
243
245
244
246
if ( repoRemoved ) {
245
247
process . stdout . write ( '\n' ) ;
You can’t perform that action at this time.
0 commit comments