From c0b70a6456b72a4212cdfd2306c54faf83a3d91b Mon Sep 17 00:00:00 2001 From: Nigel McNie Date: Sat, 31 May 2008 16:28:12 +1200 Subject: [PATCH] Don't output the message to commit time if there is none to commit. --- tks.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tks.pl b/tks.pl index 972c12c..37db9c1 100755 --- a/tks.pl +++ b/tks.pl @@ -103,7 +103,7 @@ foreach my $date ( sort keys %{$tkdata} ) { write_file($args->{''}, @lines) if $file_needs_write; print "Total time: ", $total_time, "\n"; -print "Run this program again with -c to commit the work\n" unless $args->{'-c'}; +print "Run this program again with -c to commit the work\n" unless $args->{'-c'} or $total_time == 0; -- 2.39.5