Skip to content

Commit

Permalink
Remove mv after unzip.
Browse files Browse the repository at this point in the history
  • Loading branch information
q-uint committed Apr 24, 2024
1 parent 9f7a829 commit f12f3f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function run() {
const pocketicVersion = core.getInput('pocketic-version');
if (pocketicVersion) {
child_process_1.default.execSync(`wget -O ${bin}/pocket-ic.gz https://github.com/dfinity/pocketic/releases/download/${pocketicVersion}/pocket-ic-x86_64-${pocketicBuild}.gz`);
child_process_1.default.execSync(`gunzip ${bin}/pocket-ic.gz && mv ${bin}/pocket-ic/pocket-ic-x86_64-${pocketicBuild} ${bin}/pocket-ic`);
child_process_1.default.execSync(`gunzip ${bin}/pocket-ic.gz`);
child_process_1.default.execSync(`chmod +x ${bin}/pocket-ic`);
const pocketicPath = yield io.which('pocket-ic');
infoExec(`${pocketicPath} --version`);
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function run() {
cp.execSync(
`wget -O ${bin}/pocket-ic.gz https://github.com/dfinity/pocketic/releases/download/${pocketicVersion}/pocket-ic-x86_64-${pocketicBuild}.gz`
);
cp.execSync(`gunzip ${bin}/pocket-ic.gz && mv ${bin}/pocket-ic/pocket-ic-x86_64-${pocketicBuild} ${bin}/pocket-ic`);
cp.execSync(`gunzip ${bin}/pocket-ic.gz`);
cp.execSync(`chmod +x ${bin}/pocket-ic`);

const pocketicPath = await io.which('pocket-ic');
Expand Down

0 comments on commit f12f3f2

Please sign in to comment.