From ff88fbca675945015a0c59b18be65b74cdd7d989 Mon Sep 17 00:00:00 2001
From: Yaroslav <contact@yaroslavps.com>
Date: Sun, 3 May 2020 18:05:18 +0300
Subject: changes to waybar weather script

---
 dotfiles/.local/bin/barweather | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'dotfiles')

diff --git a/dotfiles/.local/bin/barweather b/dotfiles/.local/bin/barweather
index 042fc52..1fd2c6c 100755
--- a/dotfiles/.local/bin/barweather
+++ b/dotfiles/.local/bin/barweather
@@ -5,10 +5,6 @@ location="Saint Petersburg"
 update_freq=1800
 obsolete_after=10800
 
-if [ -n "$location" ]; then
-    location="~${location// /+}"
-fi
-
 update_forecast() {
   # Check several times before giving up, useful when just waking up from sleep
   # since internet is usually not available right away
@@ -35,7 +31,7 @@ else
 fi
 
 if [ ! -f "$cachefile" ]; then
-    exit
+  exit
 fi
 
 cat "$cachefile"
-- 
cgit v1.2.3