Skip to content

Commit

Permalink
Add a new line at the end of each sha file
Browse files Browse the repository at this point in the history
Signed-off-by: Yael Harel <[email protected]>
  • Loading branch information
Yael Harel committed Aug 12, 2021
1 parent b02eff5 commit caaeff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/packager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ func doPackage() error {
defer hashFile.Close()

sha := hex.EncodeToString(hasher.Sum(nil))
_, err = hashFile.Write([]byte(sha))
_, err = hashFile.Write([]byte(sha + "\n"))
if err != nil {
return errors.Wrap(err, fmt.Sprintf("Failed to write sha256:%s to %s", hasher.Sum(nil), hashFileName))
return errors.Wrap(err, fmt.Sprintf("Failed to write sha256:%s to %s", sha, hashFileName))
}

return nil
Expand Down

0 comments on commit caaeff2

Please sign in to comment.