summaryrefslogtreecommitdiffstats
path: root/bin/hush/update-weather
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hush/update-weather')
-rwxr-xr-xbin/hush/update-weather9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/hush/update-weather b/bin/hush/update-weather
new file mode 100755
index 0000000..e3a6bc3
--- /dev/null
+++ b/bin/hush/update-weather
@@ -0,0 +1,9 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+
+use Path::Class;
+
+if (my $weather = `weather`) {
+ file("$ENV{HOME}/.cache/weather")->openw->print($weather);
+}