modify: use-git-hook-to-build-hugo-site-automatically
This commit is contained in:
parent
add01a4fcc
commit
23da5263d7
|
@ -36,7 +36,7 @@ pre-receive, update, post-receive, post-update, push-to-checkout
|
||||||
```bash
|
```bash
|
||||||
#!/bin/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
|
bash $hook
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue