File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -400,20 +400,13 @@ Common.sink.resolveInterpreter = function(app) {
400400 var extName = path . extname ( app . pm_exec_path ) ;
401401 var betterInterpreter = extItps [ extName ] ;
402402
403- if ( betterInterpreter === 'node' ) {
404- betterInterpreter = process . execPath
405- if ( process . execPath . indexOf ( 'node' ) < - 1 )
406- betterInterpreter = 'node' ;
407- }
408-
409403 // No interpreter defined and correspondance in schema hashmap
410404 if ( noInterpreter && betterInterpreter ) {
411405 app . exec_interpreter = betterInterpreter ;
412406 }
413-
414407 // Else if no Interpreter detect if process is binary
415408 else if ( noInterpreter )
416- app . exec_interpreter = isBinary ( app . pm_exec_path ) ? 'none' : betterInterpreter ;
409+ app . exec_interpreter = isBinary ( app . pm_exec_path ) ? 'none' : 'node' ;
417410 else if ( app . exec_interpreter . indexOf ( 'node@' ) > - 1 )
418411 resolveNodeInterpreter ( app ) ;
419412
Original file line number Diff line number Diff line change 11{
22 "name" : " pm2" ,
33 "preferGlobal" : true ,
4- "version" : " 3.2.6 " ,
4+ "version" : " 3.2.7 " ,
55 "engines" : {
66 "node" : " >=4.0.0"
77 },
You can’t perform that action at this time.
0 commit comments