Skip to content

Commit

Permalink
Bugfix: Remove directories from sha files
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Feb 9, 2025
1 parent 51b300e commit ee62041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/image/compress-checksum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function output_images_compress_and_checksum() {

if [[ $COMPRESS_OUTPUTIMAGE == *sha* ]]; then
display_alert "SHA256 calculating" "${uncompressed_file_basename}${compression_type}" "info"
sha256sum -b "${uncompressed_file}${compression_type}" > "${uncompressed_file}${compression_type}".sha
sha256sum -b "${uncompressed_file}${compression_type}" | awk '{split($2, a, "/"); print $1, a[length(a)]}' > "${uncompressed_file}${compression_type}".sha
fi

done
Expand Down

0 comments on commit ee62041

Please sign in to comment.