Skip to content

Commit

Permalink
write-output: prettyprint digest output
Browse files Browse the repository at this point in the history
  • Loading branch information
flihp committed Apr 8, 2024
1 parent b534944 commit ddf6208
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script/write-output
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ if [ ! -f "$ISO" ]; then
fi

# get hash of iso
ISO_HASH=$(sha256sum "$ISO" | awk '{print $1}')
ISO_HASH=$(
sha256sum "$ISO" | awk '{print $1}' \
| awk '{gsub(/.{2}/,"& ")}1' \
| sed 's/ /\n/8;P;D' \
| head -c -1
)
info "ISO has digest sha256-$ISO_HASH"

# cdrecord is noisy on both stdio and stderr. We can't redirect stderr while
Expand Down

0 comments on commit ddf6208

Please sign in to comment.