Browse Source

Fixed some error stuff

Samuel W. Flint 7 years ago
parent
commit
4ebc993812
1 changed files with 4 additions and 0 deletions
  1. 4 0
      history-stats

+ 4 - 0
history-stats

@@ -15,6 +15,10 @@ sub hashValueDescendingNum {
 while (<HISTORY>) {
     my $command = $_;
 
+    if ($command =~ m/^$/) {
+        next;
+    }
+
     my @comm = split(' ', $command);
 
     if ($comm[0] eq "sudo") {