From 0cc44ccc5b27f5b6b19cd077ee9f70b347032785 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 5 Jun 2017 18:51:57 +0200 Subject: [PATCH] Fix git hook --- hooks/post-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/post-receive b/hooks/post-receive index 959ccd8..7c55d67 100644 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -16,7 +16,7 @@ git clone --recursive $GIT_REPO $WORKING_DIRECTORY rm -rf $PUBLIC_WWW/* $HOME/.local/bin/hugo -s $WORKING_DIRECTORY -d ${PUBLIC_WWW} -b "https://${MY_DOMAIN}" # minify files -./bin/minify_x86-64 -r -o $PUBLIC_WWW $PUBLIC_WWW +$WORKING_DIRECTORY/bin/minify_x86-64 -r -o $PUBLIC_WWW $PUBLIC_WWW # ahead of time compression find $PUBLIC_WWW -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' -o -name '*.xml' -o -name '*.svg' \) -exec gzip -v -k -f --best {} \; -exec touch -r {} "{}.gz" \; rm -rf $WORKING_DIRECTORY