Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

If {version} appears in installation path, it will be replaced

  • Loading branch information...
commit 53d6dc1b420b4f97b7a91e8ed40d56dcce5a8aa0 1 parent db621e9
@rricard rricard authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/installer.js
View
3  lib/installer.js
@@ -190,7 +190,8 @@ Installer.prototype.download = function(asset, path){
var self = this
, version = asset.version
, url = asset.entry[asset.compress ? 'compressed' : 'url'] || asset.entry.url
- , url = url.replace(/\{version\}/g, version);
+ , url = url.replace(/\{version\}/g, version)
+ , path = path.replace(/\{version\}/g, version);
// compressed
if (asset.compress && asset.entry.compressed) {
Please sign in to comment.
Something went wrong with that request. Please try again.