diff options
Diffstat (limited to 'bin/laptop/update-weather')
-rwxr-xr-x | bin/laptop/update-weather | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/laptop/update-weather b/bin/laptop/update-weather new file mode 100755 index 0000000..e3a6bc3 --- /dev/null +++ b/bin/laptop/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); +} |