summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLivio Recchia <recchialivio@libero.it>2022-10-14 13:27:37 +0200
committerLivio Recchia <recchialivio@libero.it>2022-10-14 13:27:37 +0200
commit86b58badf33bef020ee8915cf018136c91ef08f6 (patch)
tree363d725c0580b0a9d3c90274a1f5d56611af74a7
parent7861534df7f5b15fc0c34bd2a5f1f082e85d9f22 (diff)
downloadtmw-info-livio_101021.tar.gz
tmw-info-livio_101021.tar.bz2
tmw-info-livio_101021.tar.xz
tmw-info-livio_101021.zip
Replaced 'curl -s' with 'wget -q'livio_101021
-rwxr-xr-xtmw-info.sh2
1 files changed, 1 insertions, 1 deletions
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