Permalink
Browse files

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

  • Loading branch information...
1 parent db621e9 commit 53d6dc1b420b4f97b7a91e8ed40d56dcce5a8aa0 @rricard rricard committed Aug 30, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/installer.js
View
@@ -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) {

0 comments on commit 53d6dc1

Please sign in to comment.