aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-01 16:17:34 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-01 16:17:34 +0100
commit657a47336b198c4e17115f07b4b7f0fa94296d82 (patch)
tree843b978d0431fe2022ca3f6535904f1c9a1b68bd
parentm bug (diff)
downloadsplashtool-657a47336b198c4e17115f07b4b7f0fa94296d82.tar.gz
splashtool-657a47336b198c4e17115f07b4b7f0fa94296d82.tar.bz2
splashtool-657a47336b198c4e17115f07b4b7f0fa94296d82.tar.xz
m bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rwxr-xr-xsrc/splashtool2
1 files changed, 1 insertions, 1 deletions
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}")"