From cceed291062b350dc658d7d189933ac47d4f4dec Mon Sep 17 00:00:00 2001 From: Mikhail Swift Date: Tue, 23 Jul 2024 12:17:10 -0400 Subject: [PATCH] fix: use path.join to concatenate cache path Signed-off-by: Mikhail Swift --- dist/index.js | 7 ++++++- index.js | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index e2a5a7d..f6bd39e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -30746,7 +30746,12 @@ async function run() { console.log("Extracting witness at: " + witnessInstallDir); witnessPath = await tc.extractTar(witnessTar, witnessInstallDir); - const cachedPath = await tc.cacheFile(witnessPath + "witness", "witness", "witness", version); + const cachedPath = await tc.cacheFile( + path.join(witnessPath, "witness"), + "witness", + "witness", + version + ); console.log("Witness cached at: " + cachedPath); } diff --git a/index.js b/index.js index d382f3d..cc2a561 100644 --- a/index.js +++ b/index.js @@ -54,7 +54,12 @@ async function run() { console.log("Extracting witness at: " + witnessInstallDir); witnessPath = await tc.extractTar(witnessTar, witnessInstallDir); - const cachedPath = await tc.cacheFile(witnessPath + "witness", "witness", "witness", version); + const cachedPath = await tc.cacheFile( + path.join(witnessPath, "witness"), + "witness", + "witness", + version + ); console.log("Witness cached at: " + cachedPath); }