X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-tools-cn.git;a=blobdiff_plain;f=cp-update;h=ecac2f7b2ca6e5286b2a0319086a0376b7c31fe7;hp=2207c407d1b8a7eab26066fd5dfe1fe65671b5e9;hb=01968242e3b13b6f0d59e35e612a824780927ab0;hpb=dbb7399cf634ebc433853bf4870789e424debf98 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); } }