projects
/
Biblio-RFID.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed944d2
)
append to log
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 3 Sep 2010 12:37:28 +0000
(14:37 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 3 Sep 2010 12:37:28 +0000
(14:37 +0200)
this fixes HUGE bug which overwrites log file with every new tag :-(
scripts/print.pl
patch
|
blob
|
history
diff --git
a/scripts/print.pl
b/scripts/print.pl
index
701447e
..
476a64e
100755
(executable)
--- a/
scripts/print.pl
+++ b/
scripts/print.pl
@@
-89,7
+89,7
@@
die "$log_path exists" if -e $log_path;
sub write_log {
my ( $tag, $number ) = @_;
- open(my $log, '>', $log_path) || die "$log_path: $!";
+ open(my $log, '>
>
', $log_path) || die "$log_path: $!";
my $date = iso_date;
print $log "$date,$tag,$number\n";
close($log);