include .hidden files

This commit is contained in:
nervuri 2021-03-21 16:40:05 +00:00
parent 801b35874c
commit e6d37b204b
1 changed files with 4 additions and 2 deletions

View File

@ -89,9 +89,11 @@ if [ "$action" = 'sign' ]; then
# Copy public key to temporary directory
cp "$public_key" "$tempdir/key.pub"
# Remove the old signature-bundle, if it exists
rm -f .well-known/signature-bundle
# Generate SHA256SUMS file
find -- * -type f -print0 | xargs -0 sha256sum > "$tempdir/SHA256SUMS"
# TODO: option to include hidden files
find -- . -type f -print | cut -d '/' -f 2- | sort | xargs sha256sum > "$tempdir/SHA256SUMS"
# Go to temporary directory
cd "$tempdir" || exit 1