From 6f01bac76c3df4e90fb210d3c9bf3eb7804bb347 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 15 Nov 2016 09:00:51 -0500 Subject: [PATCH] fix hook more --- contrib/tools/hooks/purge-varnish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/tools/hooks/purge-varnish.sh b/contrib/tools/hooks/purge-varnish.sh index 871bc1c..ca0a022 100755 --- a/contrib/tools/hooks/purge-varnish.sh +++ b/contrib/tools/hooks/purge-varnish.sh @@ -9,6 +9,6 @@ ip="127.0.1.1" varnish="127.0.0.1:8000" # purge thread page -curl --interface "$ip" -X PURGE http://$varnish/thread-$(sha1sum <<< "$3" | cut -d' ' -f1).html &> /dev/null +curl --interface "$ip" -X PURGE http://$varnish/thread-$(echo -n "$3" | sha1sum | cut -d' ' -f1).html &> /dev/null # purge board page curl --interface "$ip" -X PURGE http://$varnish/$1-0.html &> /dev/null