From 5bf8f4a6924aacd619197db51d9321b1f9c8c93e Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Mon, 12 Aug 2024 15:52:45 +0200 Subject: [PATCH] Fix .treeinfo check in the functions-proxy utils Squid prints file name in the middle of the line not on the end. Maybe change in the squid logging? --- functions-proxy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions-proxy.sh b/functions-proxy.sh index db238779..712234e1 100644 --- a/functions-proxy.sh +++ b/functions-proxy.sh @@ -38,7 +38,7 @@ function check_proxy_settings() { fi elif [ "$httpdir" ]; then # check for .treeinfo request - grep -q '\.treeinfo$' $tmpdir/proxy/access.log + grep -q '\.treeinfo[[:space:]]' $tmpdir/proxy/access.log if [[ $? -ne 0 ]]; then echo '.treeinfo request to repository server was not proxied' >> $tmpdir/RESULT fi