From 3d0acf108460a8513ec7a13f1de1cc2f7bf9e9f1 Mon Sep 17 00:00:00 2001 From: "David Humphrey (:humph) david.humphrey@senecacollege.ca" Date: Wed, 23 Jul 2014 19:25:13 -0400 Subject: [PATCH] Fix typo in sh.wget, which is using fs.cwd instead of the shell instance cwd --- src/shell/shell.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shell/shell.js b/src/shell/shell.js index 987d6c9..e9c276a 100644 --- a/src/shell/shell.js +++ b/src/shell/shell.js @@ -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'));