diff --git a/dist/index.js b/dist/index.js index 8b24262..3502542 100644 --- a/dist/index.js +++ b/dist/index.js @@ -51,7 +51,7 @@ function setup() { console.log('try to setup from url: ', downloadUrl); // Download and extract. const sccachePackage = yield (0, tool_cache_1.downloadTool)(downloadUrl); - const sccachePath = (yield (0, tool_cache_1.extractTar)(sccachePackage)) + `/sccache`; + const sccachePath = yield (0, tool_cache_1.extractTar)(sccachePackage); // Cache sccache. const sccacheHome = yield (0, tool_cache_1.cacheDir)(sccachePath, 'sccache', version); // Add cached sccache into path. diff --git a/src/sccache.ts b/src/sccache.ts index c380de3..099d356 100644 --- a/src/sccache.ts +++ b/src/sccache.ts @@ -17,7 +17,7 @@ async function setup() { // Download and extract. const sccachePackage = await downloadTool(downloadUrl); - const sccachePath = (await extractTar(sccachePackage)) + `/sccache`; + const sccachePath = await extractTar(sccachePackage); // Cache sccache. const sccacheHome = await cacheDir(sccachePath, 'sccache', version);