summaryrefslogtreecommitdiffstats
path: root/local/.bin/hornet/update-weather
diff options
context:
space:
mode:
Diffstat (limited to 'local/.bin/hornet/update-weather')
-rwxr-xr-xlocal/.bin/hornet/update-weather6
1 files changed, 6 insertions, 0 deletions
diff --git a/local/.bin/hornet/update-weather b/local/.bin/hornet/update-weather
new file mode 100755
index 0000000..fad6ff7
--- /dev/null
+++ b/local/.bin/hornet/update-weather
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -eu
+set -o pipefail
+
+weather >~/.cache/weather.new
+mv ~/.cache/weather.new ~/.cache/weather