mirror of
https://github.com/yrzam/yrzam-hugo-theme.git
synced 2025-04-07 07:12:28 +00:00
signer script
This commit is contained in:
parent
f91c80ddaf
commit
bcc7736af2
@ -1,10 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
if [ ! -f "../../themes/yrzam/init/import-environment.sh" ]; then
|
[ -d ./themes/yrzam ] && cd ./themes/yrzam
|
||||||
echo "Wrong path" >&2
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
VARS=$(printenv | \
|
VARS=$(printenv | \
|
||||||
grep -E 'THEME_.*' | \
|
grep -E 'THEME_.*' | \
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user