Keep cache files generated by MythTV scripts in a temporary directory.
This commit is contained in:
parent
ec4c685c43
commit
51655c60dc
1 changed files with 6 additions and 0 deletions
|
@ -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 <units> <location> <text_voffset> <img_voffset> <fontsize_pixels> [hour-format]\n";
|
||||
exit 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue