diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-03-27 14:55:40 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-03-27 14:55:40 +0200 |
commit | 33d29c2155d4c78fce4a70e1f99ba7ee26304026 (patch) | |
tree | 8b0f380e007daf7a7403db1a28b91ced838ece61 /utils.sh | |
parent | 468c0561fe23b341c0d6d7b10e3f95eccfef468a (diff) |
Better output, README
Diffstat (limited to 'utils.sh')
-rwxr-xr-x | utils.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" } |