Skip to content

Commit

Permalink
Use sha function from prepareWorkspace.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Nov 23, 2023
1 parent 6a5a1c9 commit a374308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ generateSBoM() {
continue
fi

local sha=$(sha256sum "${archiveFile}" | cut -f1 -d' ')
local sha=$(sha256File "${archiveFile}")

# Create JDK Component
addSBOMComponent "${javaHome}" "${classpath}" "${sbomJson}" "${componentName}" "${fullVer}" "${BUILD_CONFIG[BUILD_VARIANT]^} ${component} Component"
Expand Down

0 comments on commit a374308

Please sign in to comment.