| @@ -4,8 +4,16 @@ const fs = require('fs') | |||
| function nodeShellExec() { | |||
| var args = Array.from(arguments); | |||
| var opts = args[2] = args[2] || {} | |||
| opts.title ? null : opts.title = `${args[0]} ${args[1] }` | |||
| if(args.length > 1){ | |||
| var opts = args[2] = args[2] || {} | |||
| opts.title ? null : opts.title = `${args[0]} ${args[1] }` | |||
| } | |||
| else { | |||
| opts = { | |||
| title : `${args[0]}` | |||
| // , inherit: true, shell: true | |||
| } | |||
| } | |||
| // // const spawn = require('child_process').spawn; | |||
| // const s = spawn( | |||