From 51655c60dc57f7d9b5ce916d0f72eb4ebaf167f8 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Mon, 26 Aug 2013 21:05:09 -0400 Subject: [PATCH] Keep cache files generated by MythTV scripts in a temporary directory. --- conky-mythtv-weather-build.plx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conky-mythtv-weather-build.plx b/conky-mythtv-weather-build.plx index 2aeb7fa..7f093a1 100755 --- a/conky-mythtv-weather-build.plx +++ b/conky-mythtv-weather-build.plx @@ -27,6 +27,12 @@ use utf8; use feature 'unicode_strings'; use Encode qw(encode decode); +use File::Temp qw/tempdir/; + + +chdir("$ENV{HOME}/tmp/.conky-mythtv-weather") + or die "unable to go to $ENV{HOME}/tmp/.conky-mythtv-weather"; + if (@ARGV != 6 and @ARGV != 7) { print STDERR "usage: $0 /path/to/mythtv/git/checkout [hour-format]\n"; exit 1;