mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-02 12:18:41 -05:00
10 lines
167 B
Plaintext
10 lines
167 B
Plaintext
|
#!/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
|