Merge pull request #25 from jviotti/fix/stop-parsing-command-options-sudo
Don't keep parsing command options in sudo
This commit is contained in:
commit
1acae8af6d
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
@ -16,6 +16,8 @@ function Attempt(instance, end) {
|
||||||
command.push('-n');
|
command.push('-n');
|
||||||
// Preserve user environment:
|
// Preserve user environment:
|
||||||
command.push('-E');
|
command.push('-E');
|
||||||
|
// Stop parsing command options:
|
||||||
|
command.push('--');
|
||||||
command.push(instance.command);
|
command.push(instance.command);
|
||||||
command = command.join(' ');
|
command = command.join(' ');
|
||||||
Node.child.exec(command,
|
Node.child.exec(command,
|
||||||
|
|
Loading…
Reference in a new issue