mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-01 02:22:11 +02:00
profiles/coreos/base: slsa: sort file checksums by name
This commit is contained in:
parent
1a0f396be4
commit
b1ce3800a5
@ -30,7 +30,7 @@ __slsa_provenance_subject() {
|
|||||||
|
|
||||||
(
|
(
|
||||||
cd "$D"
|
cd "$D"
|
||||||
find . -type f -print | sed 's:^./::' | xargs -P "$parallel" -L 1 sha512sum
|
find . -type f -print | sed 's:^./::' | xargs -P "$parallel" -L 1 sha512sum | sort -k2
|
||||||
) | while read checksum filepath; do
|
) | while read checksum filepath; do
|
||||||
echo -en "${comma} {\"name\":\"/$filepath\", \"digest\":{\"sha512\":\"$checksum\"}}"
|
echo -en "${comma} {\"name\":\"/$filepath\", \"digest\":{\"sha512\":\"$checksum\"}}"
|
||||||
if [ -z "$comma" ] ; then
|
if [ -z "$comma" ] ; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user