From: Nicolas Boisselier Date: Sat, 10 Jan 2026 00:34:02 +0000 (+0100) Subject: fix netrcoption for http_get X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=a3cbfac07cb27c0563d66cf6c85d11e70cc744f0;p=nb.git fix netrcoption for http_get --- 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 '