From 0595c8ad498f42e6b1ea58f741a618ff3e39c7fc Mon Sep 17 00:00:00 2001 From: Andri Oskarsson Date: Fri, 30 Apr 2021 08:03:39 +0200 Subject: [PATCH] fixing dl url --- dist/index.js | 4 ++-- index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 2ba50c0..514369a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3916,8 +3916,8 @@ async function main() { }); const dirName = `rclone-v${version}-${platform}`; const downloadPath = await import_tool_cache.default.downloadTool(rendered); - await (0, import_tool_cache.extractZip)(downloadPath); - const extractedPath = import_path.default.join(FILENAME); + const extractPath = await (0, import_tool_cache.extractZip)(downloadPath); + const extractedPath = import_path.default.join(extractPath, dirName, FILENAME); toolPath = await import_tool_cache.default.cacheFile(extractedPath, FILENAME, FILENAME, version); } (0, import_core.debug)("toolpath:" + toolPath); diff --git a/index.ts b/index.ts index f0d20ba..3b56de2 100644 --- a/index.ts +++ b/index.ts @@ -31,9 +31,9 @@ async function main() { const dirName = `rclone-v${version}-${platform}`; const downloadPath = await cache.downloadTool(rendered); - await extractZip(downloadPath); + const extractPath = await extractZip(downloadPath); - const extractedPath = path.join(FILENAME); + const extractedPath = path.join(extractPath, dirName, FILENAME); toolPath = await cache.cacheFile( extractedPath, -- 2.51.2