diff options
context:
space:
mode:
Diffstat (limited to 'tests/t0004-docs.sh')
-rwxr-xr-xtests/t0004-docs.sh3
1 file changed, 2 insertions, 1 deletion
diff --git a/tests/t0004-docs.sh b/tests/t0004-docs.sh
index 65c8275..1eca51e 100755
--- a/tests/t0004-docs.sh
+++ b/tests/t0004-docs.sh
@@ -48,7 +48,8 @@ test_expect_success 'the manual lists its repository settings in order' '
# The policy is spelled out once per server syntax, so nothing but this check
# keeps the three copies from drifting apart.
test_expect_success 'the server configs agree on one content security policy' '
- for server in apache lighttpd nginx; do
+ for server in apache lighttpd nginx
+ do
grep "Content-Security-Policy" "$ROOT/custom/servers/$server.conf" |
grep "default-src" |
sed "s/.*\"\(default-src[^\"]*\)\".*/\1/" || return 1