Skip to content

Commit

Permalink
add bin
Browse files Browse the repository at this point in the history
  • Loading branch information
stCarolas committed Dec 7, 2019
1 parent c94f921 commit 7f7f6e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ function getMaven(version) {
exports.getMaven = getMaven;
function downloadMaven(version) {
return __awaiter(this, void 0, void 0, function* () {
const toolDirectoryName = 'apache-maven-${version}';
const downloadUrl = 'https://www-eu.apache.org/dist/maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz';
const toolDirectoryName = `apache-maven-${version}`;
const downloadUrl = `https://www-eu.apache.org/dist/maven/maven-3/${version}/binaries/${toolDirectoryName}-bin.tar.gz`;
console.log(`downloading ${downloadUrl}`);
try {
const downloadPath = yield tc.downloadTool(downloadUrl);
const extractedPath = yield tc.extractTar(downloadPath);
Expand Down

0 comments on commit 7f7f6e2

Please sign in to comment.