From 6e078e8764b5124ca91679ee55fac28d60e202f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Tue, 30 Aug 2022 21:50:14 +0300 Subject: weath: add argument to chose version of wttr.in --- dotfiles/.local/bin/weath | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dotfiles/.local/bin') 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" -- cgit v1.2.3