From: Michael Prokop Date: Sat, 17 Mar 2007 15:01:16 +0000 (+0100) Subject: Fix script so it matches only lines with "^-- $". X-Git-Tag: 0.3.24~1 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=17034dd1db814f3d24e0097e34eedb9e6ba62022;hp=ec77624ab4f9fa288ce7e2f49205a6e943e18e6e;p=grml-tips.git Fix script so it matches only lines with "^-- $". --- diff --git a/debian/changelog b/debian/changelog index f42b26f..117d1e9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-tips (0.3.24) unstable; urgency=low + + * Fix script so it matches only lines with '^-- $'. + + -- Michael Prokop Sat, 17 Mar 2007 16:00:48 +0100 + grml-tips (0.3.23) unstable; urgency=low * Add "configure timezone" tip. [Closes: issue157] diff --git a/grml-tips b/grml-tips index 0103730..77f0acf 100755 --- 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 ) { diff --git a/grml_tips b/grml_tips index 21ff86c..94a7c97 100644 --- a/grml_tips +++ b/grml_tips @@ -2516,7 +2516,6 @@ Check your current settings via: Further information: -------------------- - hwclock(8) tzselect(1) tzconfig(8) http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html http://wiki.debian.org/TimeZoneChanges