Skip to content

Commit

Permalink
remove bug on executeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoda committed Nov 22, 2013
1 parent 4b070d7 commit e298e8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ Session.prototype.execute = function(shellCommand, options, callback) {
Session.prototype.executeScript = function(scriptFile, vars, options, callback) {
var self = this;

this._applyTemplate(scriptFile, vars, options, function(err, content) {
this._applyTemplate(scriptFile, vars, function(err, content) {
if(err) {
callback(err);
} else {
self.execute(content, callback);
self.execute(content, options, callback);
}
});
};
Expand Down Expand Up @@ -324,4 +324,4 @@ Session.prototype._doSpawn = function(command, options, callback) {
}
}

module.exports = Session
module.exports = Session

0 comments on commit e298e8a

Please sign in to comment.