From 657a47336b198c4e17115f07b4b7f0fa94296d82 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 1 Nov 2014 16:17:34 +0100 Subject: m bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/splashtool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/splashtool b/src/splashtool index f3d5ab0..2fc1c10 100755 --- a/src/splashtool +++ b/src/splashtool @@ -188,7 +188,7 @@ segs () mod=0 while read -r seg; do current=$(echo "${seg}" | cut -d ' ' -f 1) - index=$(( ${current} / 10 )) + index=$(( ${current} / 10 - 1 )) seg="$(echo "${seg}" | sed -e 's/^[^ ]* //')" if [ ${last} = ${current} ]; then text="$(echo "${text}" ; echo "${seg}")" -- cgit v1.2.3-70-g09d2