modify: use-git-hook-to-build-hugo-site-automatically

This commit is contained in:
leafee98 2022-04-28 22:50:31 +08:00
parent add01a4fcc
commit 23da5263d7

View file

@ -36,7 +36,7 @@ pre-receive, update, post-receive, post-update, push-to-checkout
```bash
#!/bin/bash
for hook in "$(dirname "$0")/post-receive.d"/*; do
for hook in "$(find "$(dirname "$0")"/post-receive.d -type f -perm -u=x)"; do
bash $hook
done