summaryrefslogtreecommitdiffstats
path: root/i3status/.bin/update-weather
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2024-02-23 04:24:12 -0500
committerJesse Luehrs <doy@tozt.net>2024-02-23 04:31:14 -0500
commit15c96f8b5ded9f4b67257b29bdc9d623aae532e4 (patch)
tree5e0db82b1c05d40f74014e3ea3b37660694900e3 /i3status/.bin/update-weather
parent33b95fda42cbf84bcbc4fead401e954ed674ccb9 (diff)
downloadconf-15c96f8b5ded9f4b67257b29bdc9d623aae532e4.tar.gz
conf-15c96f8b5ded9f4b67257b29bdc9d623aae532e4.zip
move a couple scripts to more specific packages
Diffstat (limited to 'i3status/.bin/update-weather')
-rwxr-xr-xi3status/.bin/update-weather7
1 files changed, 7 insertions, 0 deletions
diff --git a/i3status/.bin/update-weather b/i3status/.bin/update-weather
new file mode 100755
index 0000000..fb8afca
--- /dev/null
+++ b/i3status/.bin/update-weather
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -eu
+set -o pipefail
+
+echo "updating weather..."
+"$(dirname "$0")"/weather >~/.cache/weather.new
+mv ~/.cache/weather.new ~/.cache/weather