diff --git a/src/lib/list_news.sh b/src/lib/list_news.sh index 038aa51..0d9fc26 100755 --- a/src/lib/list_news.sh +++ b/src/lib/list_news.sh @@ -69,7 +69,7 @@ else if [ "${num}" -le "${news_num}" ] 2> /dev/null && [ "${num}" -gt "0" ]; then printed_news="true" news_selected=$(sed -n "${num}"p <<< "${news_titles}") - news_path=$(echo "${news_selected}" | sed s/\ -//g | sed s/\ /-/g | sed s/[.]//g | sed s/=//g | sed s/\>//g | sed s/\<`:+@,()\[\]'"'"']//g; s/ /-/g; s/--/-/g' | tr '[:upper:]' '[:lower:]') news_url="https://www.archlinux.org/news/${news_path}" news_content=$(curl -m 30 -Lfs "${news_url}" || echo "error")