From 0ebee6eeb1e053d50b9f74c75c419d033c333616 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 31 Oct 2014 23:34:47 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/splashtool | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/splashtool b/src/splashtool index 95f8975..8443f46 100755 --- a/src/splashtool +++ b/src/splashtool @@ -26,12 +26,12 @@ d="$(dirname "$(realpath "$0")")" trim () { sed -e 's/\t/ /g' | sed -e '/^[ \t]*\(#\|$\)/d' -e 's/ #.*$//' -e 's/^ *//' -e 's/ *$//' | - awk ' BEGIN { text = 0; } - { t=tolower($1); - if (t=="text") text+=1; - if (t=="timeout" || t=="menu" || t=="font" || text==1) print $LINE; - if (t=="endtext") text+=1; - }' + awk 'BEGIN { text = 0; } + { t=tolower($1); + if (t=="text") text+=1; + if (t=="timeout" || t=="menu" || t=="font" || text==1) print $LINE; + if (t=="endtext") text+=1; + }' } cd "$(dirname "$1")" -- cgit v1.2.3-70-g09d2