Skip to content

Commit

Permalink
Fix incorrect Connection parameter in execCommand
Browse files Browse the repository at this point in the history
The ssh2 Connect requires the pty value to reside within the options parameter.
  • Loading branch information
jabes committed Dec 13, 2013
1 parent f74162c commit ab4193a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/sshexec.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module.exports = function (grunt) {
} else {
var command = commands.shift();
grunt.verbose.writeln('Executing :: ' + command);
c.exec(command, options.pty, function (err, stream) {
c.exec(command, options, function (err, stream) {
if (err) {
throw err;
}
Expand Down Expand Up @@ -125,4 +125,4 @@ module.exports = function (grunt) {
var connectionOptions = utillib.parseConnectionOptions(options);
c.connect(connectionOptions);
});
};
};

0 comments on commit ab4193a

Please sign in to comment.