Update README.md

Fix outdated wget file naming docs missed when we landed the new wget stuff.
This commit is contained in:
David Humphrey 2014-05-15 11:48:47 -04:00
parent bb87dcdb5e
commit 14c584ab8e
1 changed files with 2 additions and 2 deletions

View File

@ -1358,11 +1358,11 @@ Example:
// Download the file at /files/file.json
sh.wget('/files/file.json', function(err, path) {
if(err) throw err;
// /file-134134513 is now saved to the fs
// /file.json is now saved to the fs
});
// Download the file at /files/file.json, specifying a filename
sh.wget('/files/file.json', {filename: 'file.json'}, function(err, path) {
sh.wget('/data?id=17', {filename: 'file.json'}, function(err, path) {
if(err) throw err;
// /file.json is now saved to the fs
});