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