Skip to content

Commit

Permalink
comment and readability
Browse files Browse the repository at this point in the history
Signed-off-by: Noah Elzner <[email protected]>
Signed-off-by: Noah Elzner <[email protected]>
  • Loading branch information
enteraga6 committed Aug 8, 2023
1 parent 3c8f8da commit b90e1dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/builders/bazel/generate-layout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@

set -euo pipefail

# Long directory name to avoid collisions with user's folder names
binaries_dir="bazel_builder_binaries_to_upload_to_gh_7bc972367cb286b7f36ab4457f06e369"

# "version" and "attestations" fields:
echo -e -n "{\n \"version\": 1,\n \"attestations\": [" >> "$SLSA_OUTPUTS_ARTIFACTS_FILE"

num_binary_files=$(find ./bazel_builder_binaries_to_upload_to_gh_7bc972367cb286b7f36ab4457f06e369 -type f | wc -l)
num_binary_files=$(find ./${binaries_dir} -type f | wc -l)
counter=1

# Add one attestation per binary:
find ./bazel_builder_binaries_to_upload_to_gh_7bc972367cb286b7f36ab4457f06e369 -type f -print0 | while read -r -d $'\0' fname
find ./${binaries_dir} -type f -print0 | while read -r -d $'\0' fname
do
bn=$(basename -- "$fname")
hash=$(sha256sum "$fname" | awk '{print $1}')
Expand Down

0 comments on commit b90e1dc

Please sign in to comment.