util/mk-end should ^[[K for warnings

This commit is contained in:
Kevin Lange 2013-12-05 19:30:19 -08:00
parent faec73e73d
commit 5c549e1068

View File

@ -5,7 +5,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CMD=`cpad "$1" 8 " "`
if [[ -s /tmp/.`whoami`-build-errors ]] ; then
echo -e -n "\r\033[1;33m${CMD}${2}\033[0m\n"
echo -e -n "\r\033[1;33m${CMD}${2}\033[0m\033[K\n"
cat /tmp/.`whoami`-build-errors
else
echo -e -n "\r\033[1;32m${CMD}${2}\033[0m\033[K\n"