Fix script so it matches only lines with "^-- $".
[grml-tips.git] / grml-tips
index 0103730..77f0acf 100755 (executable)
--- a/grml-tips
+++ b/grml-tips
@@ -85,7 +85,7 @@ my $tip = '';
 my $tip_flag = 0;
 
 while (my $line = <$fh>) {
-    if ($line !~ /^--/) {
+    if ($line !~ /^-- $/) {
        $tip .= $line;
     } else {
        if ( "$tip" =~ /$pattern/m ) {