@@ -58,8 +58,7 @@ function retrieveRemote(url, dest, cb) {
5858 var wget = spawn ( 'wget' , [ url , '-O' , dest , '-q' ] , {
5959 stdio : 'inherit' ,
6060 env : process . env ,
61- windowsHide : true ,
62- shell : true
61+ windowsHide : true
6362 } )
6463
6564 wget . on ( 'error' , ( err ) => {
@@ -88,10 +87,9 @@ function installLocal(PM2, module_filepath, opts, cb) {
8887
8988 fs . mkdirSync ( install_path , { recursive : true } )
9089
91- var install_instance = spawn ( 'tar' , [ 'zxf' , module_filepath , '-C' , install_path , '--strip-components 1' ] , {
90+ var install_instance = spawn ( 'tar' , [ 'zxf' , module_filepath , '-C' , install_path , '--strip-components' , ' 1'] , {
9291 stdio : 'inherit' ,
93- env : process . env ,
94- shell : true
92+ env : process . env
9593 } )
9694
9795 install_instance . on ( 'close' , function ( code ) {
@@ -254,10 +252,9 @@ function uninstall(PM2, module_name, cb) {
254252function getModuleName ( module_filepath , cb ) {
255253 var tmp_folder = path . join ( os . tmpdir ( ) , cst . MODULE_BASEFOLDER )
256254
257- var install_instance = spawn ( 'tar' , [ 'zxf' , module_filepath , '-C' , os . tmpdir ( ) , ` ${ cst . MODULE_BASEFOLDER } /package.json` ] , {
255+ var install_instance = spawn ( 'tar' , [ 'zxf' , module_filepath , '-C' , os . tmpdir ( ) , cst . MODULE_BASEFOLDER + ' /package.json' ] , {
258256 stdio : 'inherit' ,
259- env : process . env ,
260- shell : true
257+ env : process . env
261258 } )
262259
263260 install_instance . on ( 'close' , function ( code ) {
0 commit comments