signer script
This commit is contained in:
15
init/sign.sh
Normal file
15
init/sign.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
[ -d ../../themes ] && cd ../..
|
||||
|
||||
rm -rf public
|
||||
hugo
|
||||
cd public
|
||||
|
||||
find . -type f -exec sha256sum {} \; | \
|
||||
sed -E 's/(\w*) \.\//\1 /' | \
|
||||
gpg -so index.sig --batch --yes
|
||||
|
||||
cp -f index.sig ../static
|
||||
Reference in New Issue
Block a user