summaryrefslogtreecommitdiff
path: root/utils.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-03-27 14:55:40 +0200
committerAndreas Maunz <andreas@maunz.de>2012-03-27 14:55:40 +0200
commit33d29c2155d4c78fce4a70e1f99ba7ee26304026 (patch)
tree8b0f380e007daf7a7403db1a28b91ced838ece61 /utils.sh
parent468c0561fe23b341c0d6d7b10e3f95eccfef468a (diff)
Better output, README
Diffstat (limited to 'utils.sh')
-rwxr-xr-xutils.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils.sh b/utils.sh
index 78892d3..6003855 100755
--- a/utils.sh
+++ b/utils.sh
@@ -17,14 +17,14 @@ check_dest()
run_cmd ()
{
local cmd="$1"; local title="$2"
- printf "%50s" "'$title'"
+ printf "%50s" "$title"
if ! eval $cmd >>$LOG 2>&1 ; then
- printf "\033[31m%30s\033[m\n" "FAIL"
+ printf " [ \033[31m%s\033[m ]\n" "FAIL"
echo "Last 10 lines of log:"
tail -10 "$LOG"
exit 1
fi
- printf "\033[32m%30s\033[m\n" "DONE"
+ printf " [ \033[32m%s\033[m ]\n" "OK"
}