Fix prompt with sudo
This commit is contained in:
parent
4b379b106a
commit
0672168541
2
index.js
2
index.js
@ -74,7 +74,7 @@ function initTools(callback) {
|
||||
function scanNetworks(callback, useSudo) {
|
||||
const cmd = scanner.cmdLine.split(" ");
|
||||
const args = cmd.slice(1);
|
||||
const child = spawn(cmd[0], args, { stdio: ['ignore', 'pipe', 'pipe'] });
|
||||
const child = spawn(cmd[0], args, { stdio: ['ignore', 'pipe', 'pipe'], detached: true });
|
||||
|
||||
child.on("error", (err) => callback(err, null) );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user