Fix typo in sh.wget, which is using fs.cwd instead of the shell instance cwd

This commit is contained in:
David Humphrey (:humph) david.humphrey@senecacollege.ca 2014-07-23 19:25:13 -04:00
parent 79e9008175
commit 3d0acf1084
1 changed files with 1 additions and 2 deletions

View File

@ -446,8 +446,7 @@ Shell.prototype.wget = function(url, options, callback) {
// properly encoded URL.
// i.e. instead of "/foo?bar/" we would expect "/foo?bar%2F"
var path = options.filename || url.split('/').pop();
path = Path.resolve(fs.cwd, path);
path = Path.resolve(this.cwd, path);
function onerror() {
callback(new Error('unable to get resource'));