From 86b58badf33bef020ee8915cf018136c91ef08f6 Mon Sep 17 00:00:00 2001 From: Livio Recchia Date: Fri, 14 Oct 2022 13:27:37 +0200 Subject: Replaced 'curl -s' with 'wget -q' --- tmw-info.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmw-info.sh b/tmw-info.sh index a9dcfa2..3351c73 100755 --- a/tmw-info.sh +++ b/tmw-info.sh @@ -99,7 +99,7 @@ mkdir -p "$TMW_INFO" if [ "$1" == "help" ] || [ "$1" == "--help" ] || [ "$1" == "-h" ]; then help elif [ "$1" == "news" ]; then - curl -s 'https://themanaworld.github.io/tmwa-server-data/news.html' | sed 's/<\/*[^>]*>//g' | less + wget -q 'https://themanaworld.github.io/tmwa-server-data/news.html' | sed 's/<\/*[^>]*>//g' | less elif [ "$1" == "online" ]; then #wget -q 'https://server.themanaworld.org/' | sed 's/<\/*[^>]*>//g' | sed -r '/^\s*$/d' | sed -r '/^\s*Name\s*$/d' | sed 1d wget -q 'https://server.themanaworld.org/' | sed 's/<\/*[^>]*>//g' | sed -r '/^\s*$/d' | sed -r '/^\s*Name\s*$/d' | grep -v 'Online Players' | sed 1d | LC_ALL=C sort -- cgit v1.2.3-70-g09d2