Skip to content

Commit

Permalink
Get filename from dest
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitin Gurram committed Dec 29, 2016
1 parent bab1d7c commit a682e72
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions make-util.js
Expand Up @@ -543,14 +543,13 @@ var getExternals = function (externals, destRoot) {
files.forEach(function (file) {
assert(file.url, 'file.url');
assert(file.dest, 'file.dest');
assert(file.filename, 'file.filename');

// download the file from url
var fileSource = downloadFile(file.url);
// copy the files
var fileDest = path.join(destRoot, file.dest);
mkdir('-p', fileDest);
cp(fileSource, path.join(fileDest, file.filename));
mkdir('-p', path.dirname(fileDest));
cp(fileSource, fileDest);
});
}
}
Expand Down

0 comments on commit a682e72

Please sign in to comment.