Skip to content
Permalink
Browse files

Don't keep parsing command options in sudo

This commit is very similar to 3f6c485. It implements the fix to the
same problem for `sudo` when the module makes an attempt to determine if
the dialog needs to be shown or not.

Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
  • Loading branch information...
Juan Cruz Viotti
Juan Cruz Viotti committed Jun 7, 2016
1 parent b87b985 commit 37996169ed6f56dfb05e45f0c7a43a172d62bce7
Showing with 2 additions and 0 deletions.
  1. +2 −0 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,

0 comments on commit 3799616

Please sign in to comment.
You can’t perform that action at this time.