Skip to content

Commit

Permalink
fix: remove sha when extracting target version
Browse files Browse the repository at this point in the history
  • Loading branch information
Diana Sentoso committed Jun 17, 2021
1 parent 2f8dc5c commit 67dfe55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,12 @@ export default class UpdateCommand extends Command {
platform: this.config.platform,
arch: this.config.arch,
});
const extraction = extract(stream, baseDir, output, manifest.sha256gz);
const extraction = extract(
stream,
baseDir,
output,
!targetVersion && manifest.sha256gz ? manifest.sha256gz : undefined,
);

// to-do: use cli.action.type
if ((cli.action as any).frames) {
Expand Down

0 comments on commit 67dfe55

Please sign in to comment.