more clear summary output

This commit is contained in:
George Danchev 2011-07-09 18:00:05 +00:00
parent 697b3c227d
commit 93dabe189e
1 changed files with 9 additions and 18 deletions

View File

@ -83,14 +83,10 @@ fi
printf "done in ${TS} sec. ok." printf "done in ${TS} sec. ok."
;; ;;
*) *)
if which tput >/dev/null 2>&1; then printf "done in ${TS} sec. "
printf "done in ${TS} sec." which tput >/dev/null 2>&1 && tput smso
tput smso printf "FAIL -> EXIT CODE $RET"
printf " FAIL. EXIT CODE: $RET;" which tput >/dev/null 2>&1 && tput rmso
tput rmso
else
printf "done in ${TS} sec. FAIL. EXIT CODE: $RET;"
fi
;; ;;
esac esac
set -e set -e
@ -118,8 +114,7 @@ fi
printf " Total elapsed ${ES} sec." printf " Total elapsed ${ES} sec."
fi fi
##### #####
printf "\n${SELF}: Std(out|err) logged in ${CLOG}." printf "\n${SELF}: Trivial log examination: ${CLOG}"
printf "\n${SELF}: Trivial log file examination:"
printf "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" printf "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
# severity classes of libdax_msgs.h in libburn and libisofs # severity classes of libdax_msgs.h in libburn and libisofs
# List of boring keywords: # List of boring keywords:
@ -157,14 +152,10 @@ fi
fi fi
# #
if which tput >/dev/null 2>&1; then which tput >/dev/null 2>&1 && tput smso
tput smso printf "\n${SELF}: Leaving the following cruft in ${GEN_DATA_DIR}:\n"
printf "\n${SELF}: Leaving the following cruft in ${GEN_DATA_DIR}:\n" which tput >/dev/null 2>&1 && tput rmso
tput rmso
else
printf "\n${SELF}: Leaving the following cruft in ${GEN_DATA_DIR}:\n"
fi
ls -lth "${GEN_DATA_DIR}" ls -lth "${GEN_DATA_DIR}"
# Fin # Fin