Skip to content

Commit

Permalink
fix: use path.join to concatenate cache path
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Swift <mikhail@testifysec.com>
  • Loading branch information
mikhailswift committed Jul 23, 2024
1 parent 40096c6 commit cceed29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit cceed29

Please sign in to comment.