From a3cbfac07cb27c0563d66cf6c85d11e70cc744f0 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sat, 10 Jan 2026 01:34:02 +0100 Subject: [PATCH] fix netrcoption for http_get --- etc/profile.d/functions | 2 +- lib/postgres/w3schools.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 4c8b54bf..6a7c6fbe 100755 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -588,7 +588,7 @@ myip() { http_get() { if which curl 1>/dev/null; then - curl -sk --netrc $* + curl -sk --netrc-optional $* elif which wget 1>/dev/null; then wget -O - --quiet --no-verbose --no-check-certificate --timeout 10 --tries 1 $* diff --git a/lib/postgres/w3schools.sh b/lib/postgres/w3schools.sh index b935823e..03bae21e 100755 --- a/lib/postgres/w3schools.sh +++ b/lib/postgres/w3schools.sh @@ -9,6 +9,7 @@ preff="$(echo "$url"|sed -E 's,[^/]+\.[^/]+$,,')" #exec echo $preff #exec echo "<$cut>" +#echo $url 1>&2 http_get "$url" | \ xmllint --format --html --xpath '/html/body//div[@id="main"]//table' - 2>/dev/null | \ grep -Ev '