X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=cp-update;h=ecac2f7b2ca6e5286b2a0319086a0376b7c31fe7;hb=9201394a0e44504084dbd627fa3b496ad2f1d9cf;hp=2207c407d1b8a7eab26066fd5dfe1fe65671b5e9;hpb=dbb7399cf634ebc433853bf4870789e424debf98;p=carnet-tools-cn.git diff --git a/cp-update b/cp-update index 2207c40..ecac2f7 100755 --- a/cp-update +++ b/cp-update @@ -299,8 +299,8 @@ sub add() { } ++ $lineNo; } - if (! $added) { - warn "$ProgramName: Inserting lines at the end implicitly!\n"; + if ($MatchLine and ! $added) { + warn "$ProgramName: Inserting lines at the end implicitly! No '$MatchLine'\n"; push(@Lines, $StdinContent); } }