diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index b7b5c9f..fda93be 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -355,9 +355,9 @@ list_packages() { # Definition of the list_news function: Display the latest Arch news and offers to read them list_news() { info_msg "$(eval_gettext "Looking for recent Arch News...")" - news=$(curl -m 30 -Lfs https://www.archlinux.org/news || echo "timeout") + news=$(curl -m 30 -Lfs https://www.archlinux.org/news || echo "error") - if [ "${news}" == "timeout" ]; then + if [ "${news}" == "error" ]; then echo warning_msg "$(eval_gettext "Unable to retrieve recent Arch News (HTTP error response or request timeout)\nPlease, look for any recent news at https://archlinux.org before updating your system")" else @@ -418,9 +418,9 @@ list_news() { 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/\