From 93dabe189e96385de10a9945b016e211e4f4becd Mon Sep 17 00:00:00 2001 From: George Danchev Date: Sat, 9 Jul 2011 18:00:05 +0000 Subject: [PATCH] more clear summary output --- releng/run_all_releng | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/releng/run_all_releng b/releng/run_all_releng index b37f9869..c242fa7c 100755 --- a/releng/run_all_releng +++ b/releng/run_all_releng @@ -83,14 +83,10 @@ fi printf "done in ${TS} sec. ok." ;; *) - if which tput >/dev/null 2>&1; then - printf "done in ${TS} sec." - tput smso - printf " FAIL. EXIT CODE: $RET;" - tput rmso - else - printf "done in ${TS} sec. FAIL. EXIT CODE: $RET;" - fi + printf "done in ${TS} sec. " + which tput >/dev/null 2>&1 && tput smso + printf "FAIL -> EXIT CODE $RET" + which tput >/dev/null 2>&1 && tput rmso ;; esac set -e @@ -118,8 +114,7 @@ fi printf " Total elapsed ${ES} sec." fi ##### - printf "\n${SELF}: Std(out|err) logged in ${CLOG}." - printf "\n${SELF}: Trivial log file examination:" + printf "\n${SELF}: Trivial log examination: ${CLOG}" printf "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" # severity classes of libdax_msgs.h in libburn and libisofs # List of boring keywords: @@ -157,14 +152,10 @@ fi fi # - if which tput >/dev/null 2>&1; then - tput smso - printf "\n${SELF}: Leaving the following cruft in ${GEN_DATA_DIR}:\n" - tput rmso - else - printf "\n${SELF}: Leaving the following cruft in ${GEN_DATA_DIR}:\n" - fi - + which tput >/dev/null 2>&1 && tput smso + printf "\n${SELF}: Leaving the following cruft in ${GEN_DATA_DIR}:\n" + which tput >/dev/null 2>&1 && tput rmso + ls -lth "${GEN_DATA_DIR}" # Fin