From a8eebffd3092c442c2c04fdac53c5adc48ac9ff0 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 15 May 2023 00:59:17 +0200 Subject: [PATCH] no more space for link --- lib/postgres/nginx_var.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/postgres/nginx_var.sh b/lib/postgres/nginx_var.sh index 442b42bc..68500b17 100755 --- a/lib/postgres/nginx_var.sh +++ b/lib/postgres/nginx_var.sh @@ -1,6 +1,8 @@ #!/bin/bash -l http_get https://nginx.org/en/docs/varindex.html \ | xmllint --html --xpath "/html/body//div[@id=\"content\"]//p" - 2>/dev/null \ -| sed -E -e "s,([^<]+) *(\(([^\)]+)\))?,https://nginx.org/en/docs/\1\t\2\t\4\n,g" -e "s,<[^>]+>,,g" \ +| sed -E \ + -e "s, *([^<]+) *(\(([^\)]+)\))?,https://nginx.org/en/docs/\1\t\2\t\4\n,g" \ + -e "s,<[^>]+>,,g" \ | grep -v "^ *$" | sed "s,(\([^(]\+\))$,\1,g" \ | awk 'BEGIN{FS="\t"}{print $2"\t"$3"\t"$1}' \ -- 2.47.3