aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-08-30 21:50:14 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-08-30 21:50:58 +0300
commit6e078e8764b5124ca91679ee55fac28d60e202f5 (patch)
tree98bf02302dd3cba9968c87c3ade94d10809cdec1
parent425d60b24da2df2b11c4a40370bb87aa7edef00a (diff)
downloadswayrice-6e078e8764b5124ca91679ee55fac28d60e202f5.tar.gz
swayrice-6e078e8764b5124ca91679ee55fac28d60e202f5.zip
weath: add argument to chose version of wttr.in
-rwxr-xr-xdotfiles/.local/bin/weath6
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"