aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-01 16:16:28 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-01 16:16:28 +0100
commita582d8c50dd86ecd19991e6257710ffc9f7b8031 (patch)
tree744e72f8f45a1a44ff649b0a9958b1c906e57d72
parenttranslate python code to shell code (diff)
downloadsplashtool-a582d8c50dd86ecd19991e6257710ffc9f7b8031.tar.gz
splashtool-a582d8c50dd86ecd19991e6257710ffc9f7b8031.tar.bz2
splashtool-a582d8c50dd86ecd19991e6257710ffc9f7b8031.tar.xz
m bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rwxr-xr-xsrc/splashtool14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/splashtool b/src/splashtool
index 7376e50..f3d5ab0 100755
--- a/src/splashtool
+++ b/src/splashtool
@@ -25,6 +25,16 @@ d="$(dirname "$(realpath "$0")")"
cd "$(dirname "$1")"
+make_image ()
+{
+ if [ -z "${debug}" ]; then
+ java -cp "$d" Assemble "$out" "$3"
+ else
+ cat
+ fi
+}
+
+
# Get the description text do display.
get_text ()
{
@@ -195,7 +205,7 @@ segs ()
done
echo "${text}"
}
-text="$(echo "${more}" | segs | ltrunc 30)"
+text="$(echo "${more}" | segs | ltrunc 29)"
if [ -z "${debug}" ]; then
echo "${text}"
@@ -210,5 +220,5 @@ else
echo "${text}" | sed -e 's/\x1b\([^\x1b]*\)\x1b/\x1b[\1m/g'
fi
-) # | java -cp "$d" Assemble "$out" "$3"
+) | make_image