~yerinalexey/dotfiles

c2d5094a99492b926330ac75e2fb322844d8fa18 — Alexey Yerin a month ago 8579758
scripts/weather: quote $date and $last_modified
1 files changed, 2 insertions(+), 2 deletions(-)

M scripts/waybar/weather
M scripts/waybar/weather => scripts/waybar/weather +2 -2
@@ 25,8 25,8 @@ cache_expired() {
}

if [ -f "$CACHE_FILE" ]; then
	now=$(date +%s)
	last_modified=$(stat "$CACHE_FILE" -c '%Y') # XXX: GNUism, stat is not POSIX
	now="$(date +%s)"
	last_modified="$(stat "$CACHE_FILE" -c '%Y')" # XXX: GNUism, stat is not POSIX

	# If cache is expired, download weather again, otherwise get results
	# from cache