aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.local/bin')
-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"