Fix git hook

This commit is contained in:
Valentin Brandl 2017-06-05 18:51:57 +02:00
parent 51ef6cf781
commit 0cc44ccc5b
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -16,7 +16,7 @@ git clone --recursive $GIT_REPO $WORKING_DIRECTORY
rm -rf $PUBLIC_WWW/* rm -rf $PUBLIC_WWW/*
$HOME/.local/bin/hugo -s $WORKING_DIRECTORY -d ${PUBLIC_WWW} -b "https://${MY_DOMAIN}" $HOME/.local/bin/hugo -s $WORKING_DIRECTORY -d ${PUBLIC_WWW} -b "https://${MY_DOMAIN}"
# minify files # 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 # 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" \; 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 rm -rf $WORKING_DIRECTORY