diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-04-03 05:23:32 -0700 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-04-03 05:23:32 -0700 |
commit | eb936c2d958e3ac2422bcecd073c8e0ef1a60abf (patch) | |
tree | 84c9d10a089d9b41f8d788e61146c90adaf9a354 /utils.sh | |
parent | 9a7e1a42db5cc0ab55837560dc0c8f341231655f (diff) |
Nicer layout 6
Diffstat (limited to 'utils.sh')
-rw-r--r-- | utils.sh | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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" } |