We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d3c66 commit d25239bCopy full SHA for d25239b
lib/spawnify.js
@@ -216,6 +216,7 @@
216
217
Spawnify.prototype._onCD = function onCD(command, currDir) {
218
var wasError, strs,
219
+ self = this,
220
CD = 'cd ',
221
HOME = process.env.HOME,
222
@@ -275,7 +276,7 @@
275
276
}
277
278
if (!isWildCard)
- this._set('exec', command, {cwd: paramDir});
279
+ self._set('exec', command, {cwd: paramDir});
280
else
281
find(paramDir, function(error, dirs) {
282
var dir;
@@ -284,7 +285,7 @@
284
285
dir = dirs[0];
286
287
paramDir = dir;
- this._set('exec', command, {cwd: dir});
288
+ self._set('exec', command, {cwd: dir});
289
});
290
};
291
0 commit comments