10 lines
179 B
Plaintext
Raw Normal View History

2021-03-13 18:34:45 +03:00
#!/bin/sh
if [ "$2" = "-v2" ]; then
curl "https://v2.wttr.in/${1:-}"
2021-03-13 18:34:45 +03:00
elif [ "$2" = "-v3" ]; then
curl "https://v3.wttr.in/${1:-}.sxl"
2021-03-13 18:34:45 +03:00
else
curl "https://wttr.in/${1:-}"
2021-03-13 18:34:45 +03:00
fi