Skip to content

Commit

Permalink
mark
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 12, 2023
1 parent bc67d5e commit 628abd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ async function run(): Promise<void> {
]);

fs.mkdirSync(`${tmp}/lem-${version}`);

if (platform == 'linux')
await exec.exec('tar', ['-xf', `${tmp}/${archiveName}`, '-C', `${tmp}/lem-${version}`]);
else
await exec.exec('unzip', [`${tmp}/${archiveName}`, '-d', `${tmp}/lem-${version}`]);

const options = { recursive: true, force: false };
await io.mv(`${tmp}/lem-${version}`, `${home}/lem-${version}`, options);
core.addPath(`${home}/lem-${version}`);
Expand Down

0 comments on commit 628abd4

Please sign in to comment.