summaryrefslogtreecommitdiff
path: root/utils.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-04-03 05:23:32 -0700
committerAndreas Maunz <andreas@maunz.de>2011-04-03 05:23:32 -0700
commiteb936c2d958e3ac2422bcecd073c8e0ef1a60abf (patch)
tree84c9d10a089d9b41f8d788e61146c90adaf9a354 /utils.sh
parent9a7e1a42db5cc0ab55837560dc0c8f341231655f (diff)
Nicer layout 6
Diffstat (limited to 'utils.sh')
-rw-r--r--utils.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/utils.sh b/utils.sh
index a9d6d66..ee75d32 100644
--- a/utils.sh
+++ b/utils.sh
@@ -14,15 +14,13 @@ run_cmd ()
{
local cmd="$1"
local title="$2"
- local len=`echo "$title" | wc -c`
- len=$((40-$len))
- echo -n "$title"
+ printf "%15s" "'$title'"
if ! eval $cmd >>$LOG 2>&1 ; then
- printf "%$(len)s\n" "'$title'" "FAIL"
+ printf "%25s\n" "FAIL"
exit 1
fi
- printf "%$(len)s\n" "'$title'" "DONE"
+ printf "%25s\n" "DONE"
}