From 23da5263d7ca43f5349a162ebfc2136f57c0e452 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Thu, 28 Apr 2022 22:50:31 +0800 Subject: [PATCH] modify: use-git-hook-to-build-hugo-site-automatically --- content/posts/use-git-hook-to-build-hugo-site-automatically.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/posts/use-git-hook-to-build-hugo-site-automatically.md b/content/posts/use-git-hook-to-build-hugo-site-automatically.md index c08a6d2..25f85f4 100644 --- a/content/posts/use-git-hook-to-build-hugo-site-automatically.md +++ b/content/posts/use-git-hook-to-build-hugo-site-automatically.md @@ -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