]> git.mjollnir.org Git - tks.git/commitdiff
Don't output the message to commit time if there is none to commit.
authorNigel McNie <nigel@catalyst.net.nz>
Sat, 31 May 2008 04:28:12 +0000 (16:28 +1200)
committerNigel McNie <nigel@catalyst.net.nz>
Tue, 3 Jun 2008 05:33:03 +0000 (17:33 +1200)
tks.pl

diff --git a/tks.pl b/tks.pl
index 972c12c6fbe6ef90b228af85e5415dff81c40009..37db9c1ed8da299eeb4ac3222fbeef8f58c358b3 100755 (executable)
--- a/tks.pl
+++ b/tks.pl
@@ -103,7 +103,7 @@ foreach my $date ( sort keys %{$tkdata} ) {
 write_file($args->{'<file>'}, @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;