diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-08-30 21:50:14 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-08-30 21:50:58 +0300 |
commit | 6e078e8764b5124ca91679ee55fac28d60e202f5 (patch) | |
tree | 98bf02302dd3cba9968c87c3ade94d10809cdec1 /dotfiles/.local | |
parent | 425d60b24da2df2b11c4a40370bb87aa7edef00a (diff) | |
download | swayrice-6e078e8764b5124ca91679ee55fac28d60e202f5.tar.gz swayrice-6e078e8764b5124ca91679ee55fac28d60e202f5.zip |
weath: add argument to chose version of wttr.in
Diffstat (limited to 'dotfiles/.local')
-rwxr-xr-x | dotfiles/.local/bin/weath | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dotfiles/.local/bin/weath b/dotfiles/.local/bin/weath index 5d588bb..52f48a7 100755 --- a/dotfiles/.local/bin/weath +++ b/dotfiles/.local/bin/weath @@ -1,7 +1,9 @@ #!/bin/sh location="Saint-Petersburg" +v=1 -[ -n "$1" ] && location=$1 +[ -n "$1" ] && v=$1 +[ -n "$2" ] && location=$2 -curl "wttr.in/$location" +curl "v$v.wttr.in/$location" |