dont show links with lynx

This commit is contained in:
Rob Pearce 2024-06-30 09:54:34 +10:00
parent b0f9cbc342
commit cdda351c05
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ function getcontent() { # 1=url 2=outputfile
local outfile="$2"
if [[ -n $LYNX ]]; then
curl -sL "$url" | ${LYNX} -stdin -dump -list_inline > "${outfile}"
curl -sL "$url" | ${LYNX} -stdin -dump -nolist > "${outfile}"
else
curl -sL "$url" | ${SED} 's/>/>\n/g;s/</\n</g;' | awk NF | egrep -v "^<.*>$" > "${outfile}"
fi