update pre-push git-hook

main
Dominic Reich 1 year ago
parent 264b052b8f
commit 075f6d4f1a
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -17,7 +17,7 @@ clean_up () {
echo -n ">>> Creating static files with `hugo version | awk '{ print $1,$2 }'`..." echo -n ">>> Creating static files with `hugo version | awk '{ print $1,$2 }'`..."
ret="$(hugo --gc --minify)" ret="$(hugo --gc --minify --cleanDestinationDir --printPathWarnings --logLevel warn)"
# if [ -n "$(echo $ret | grep Total)" ] ; then # if [ -n "$(echo $ret | grep Total)" ] ; then
if [ "$?" -eq "0" ] ; then if [ "$?" -eq "0" ] ; then

Loading…
Cancel
Save