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:
Joran Dirk Greef 2016-06-07 18:57:37 +02:00
commit 1acae8af6d

View file

@ -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,