use tput to highlight some FAILs

This commit is contained in:
George Danchev 2011-07-09 16:27:43 +00:00
parent 4ca37c7255
commit 63ce272077
1 changed files with 16 additions and 2 deletions

View File

@ -83,7 +83,14 @@ fi
printf "done in ${TS} sec. ok." printf "done in ${TS} sec. ok."
;; ;;
*) *)
printf "done in ${TS} sec. FAIL. EXIT CODE: $RET;" 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
;; ;;
esac esac
set -e set -e
@ -150,7 +157,14 @@ fi
fi fi
# #
printf "\n${SELF}: Leaving the following cruft in ${GEN_DATA_DIR}:\n" 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
ls -lth "${GEN_DATA_DIR}" ls -lth "${GEN_DATA_DIR}"
# Fin # Fin