FollieHiyuki-dotfiles/home/.local/bin/wttr

10 lines
167 B
Plaintext
Raw Normal View History

2021-03-13 10:34:45 -05:00
#!/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