From: Arnaud Giersch Date: Fri, 25 Feb 2011 11:17:51 +0000 (+0100) Subject: Do not insert line twice. X-Git-Tag: v0.1~98 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/d568decaa9d3c62d0da2a32d2c636b4ed7fb8063?ds=sidebyside Do not insert line twice. --- diff --git a/new_loba.sh b/new_loba.sh index 7519afc..40b6ea1 100755 --- a/new_loba.sh +++ b/new_loba.sh @@ -125,8 +125,9 @@ nol_insert && $1 ~ /\}/ { } nol_insert && !nol_inserted && /NOL_INSERT/ { - if ($1 > nol_compare) { - print nol_string; + if ($1 >= nol_compare) { + if ($1 > nol_compare) + print nol_string; nol_inserted = 1; } }