Fix typo in sh.wget, which is using fs.cwd instead of the shell instance cwd
This commit is contained in:
parent
79e9008175
commit
3d0acf1084
|
@ -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'));
|
||||
|
|
Loading…
Reference in New Issue