This repository has been archived on 2022-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/bin/sh
|
|
|
|
if [ "$2" = "-v2" ]; then
|
|
curl "https://v2.wttr.in/$1"
|
|
elif [ "$2" = "-v3" ]; then
|
|
curl "https://v3.wttr.in/$1.sxl"
|
|
else
|
|
curl "https://wttr.in/$1"
|
|
fi
|