Skip to content

Commit 8dff184

Browse files
committed
Make sure cmd is run
1 parent 641de87 commit 8dff184

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,20 @@ BinWrapper.prototype.run = function (cmd, cb) {
130130
return;
131131
}
132132

133-
this.runCheck(cb);
133+
this.runCheck(cmd, cb);
134134
}.bind(this));
135135
};
136136

137137
/**
138138
* Run binary check
139139
*
140+
* @param {Array} cmd
140141
* @param {Function} cb
141142
* @api private
142143
*/
143144

144-
BinWrapper.prototype.runCheck = function (cb) {
145-
binCheck(this.path(), function (err, works) {
145+
BinWrapper.prototype.runCheck = function (cmd, cb) {
146+
binCheck(this.path(), cmd, function (err, works) {
146147
if (err) {
147148
cb(err);
148149
return;

0 commit comments

Comments
 (0)