Skip to content

Commit

Permalink
Write the output into the correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jul 29, 2015
1 parent 573428a commit c041d8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/invoice
Expand Up @@ -30,4 +30,4 @@ my $name = $inv->filename;
$t->process('invoice.tt', $vars, "$name.html", { binmode => ':utf8' })
or die $t->error;

system('wkhtmltopdf', "$name.html", "$name.pdf");
system('wkhtmltopdf', "$name.html", "$Bin/../invoice/$name.pdf");
2 changes: 1 addition & 1 deletion bin/timesheet
Expand Up @@ -46,4 +46,4 @@ $t->process(
{ binmode => ':utf8' }
) or die $t->error;

system('wkhtmltopdf', "$fname.html", "$fname.pdf");
system('wkhtmltopdf', "$fname.html", "$Bin/../timesheet/$fname.pdf");

0 comments on commit c041d8a

Please sign in to comment.