Unverified Commit 8c3238af authored by WillyPillow's avatar WillyPillow
Browse files

Track pre-commit hook

parent 3a1e5120
Pipeline #6048953 failed with stage
in 2 minutes and 30 seconds
echo Running commit hooks...
git diff --cached --name-status | while read a b; do
if [ -f "$b" ]; then
sed -i "/---.*/,/---.*/s/^moddate:.*$/moddate: $(date "+%Y-%m-%d %T %z")/" $b
git add $b
if [ "$name" = "md" ]; then
filename=`realpath --relative-to=. $b`
filename=`echo $filename | sed 's/_posts/posts/g'`
mkdir -p "`dirname sigs/$filename.asc`"
qubes-gpg-client -a -s $b > "sigs/$filename.asc"
git add "sigs/$filename.asc"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment