From 7f7f6e2e6fcb517893f7e29b0528f3cb7c4a946a Mon Sep 17 00:00:00 2001 From: stCarolas Date: Sat, 7 Dec 2019 16:19:09 +0300 Subject: [PATCH] add bin --- lib/installer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/installer.js b/lib/installer.js index 5440604..ae6333e 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -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);