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');
|
||||
// Preserve user environment:
|
||||
command.push('-E');
|
||||
// Stop parsing command options:
|
||||
command.push('--');
|
||||
command.push(instance.command);
|
||||
command = command.join(' ');
|
||||
Node.child.exec(command,
|
||||
|
|
Loading…
Reference in a new issue