From e6d37b204bbad4695714a2872d004b4346d13e52 Mon Sep 17 00:00:00 2001 From: nervuri Date: Sun, 21 Mar 2021 16:40:05 +0000 Subject: [PATCH] include .hidden files --- netsigil | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/netsigil b/netsigil index d6df5c1..8df3ee0 100755 --- a/netsigil +++ b/netsigil @@ -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