Skip to content

Commit

Permalink
fixup! Merge pull request foundriesio#257 from doanac/go-tuf
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions <[email protected]>
  • Loading branch information
github-actions authored and detsch committed Sep 22, 2023
1 parent 93a0b65 commit 6f50c78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subcommands/version/updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ func (u FioctlUpdate) Do() error {
}
tr := io.TeeReader(reader, pb)
if _, err := io.Copy(f, tr); err != nil {
_ = os.Remove(tmpExe)
return fmt.Errorf("unable to save new version: %w", err)
}
_ = f.Close()
Expand Down

0 comments on commit 6f50c78

Please sign in to comment.